home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 10 / BBS In A Box Volume X (AMUG) (January 1994).bin / Files / Prog / U-Z / VideoToolBox.cpt / Demos / TimeVideo.c < prev    next >
MacBinary  |  1993-03-31  |  22.8 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Mar 31 03:11:32 1993, modified Wed Mar 31 03:11:32 1993, creator Think C, type ASCII, 22440 bytes "TimeVideo.c" , at 0x5828 582 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 54 69 6d 65 56 69 | 64 65 6f 2e 63 00 00 00 |..TimeVi|deo.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 57 a8 00 | 00 02 46 a7 df 02 b4 a7 |.....W..|..F.....|
|00000060| df 02 b4 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b6 1f 00 00 |........|........|
|00000080| 2f 2a 0d 54 69 6d 65 56 | 69 64 65 6f 2e 63 0d 43 |/*.TimeV|ideo.c.C|
|00000090| 6f 70 79 72 69 67 68 74 | 20 a9 20 44 65 6e 69 73 |opyright| . Denis|
|000000a0| 20 47 2e 20 50 65 6c 6c | 69 2c 20 31 39 39 32 2c | G. Pell|i, 1992,|
|000000b0| 20 31 39 39 33 0d 0d 54 | 69 6d 65 56 69 64 65 6f | 1993..T|imeVideo|
|000000c0| 20 64 6f 65 73 20 61 20 | 74 68 6f 72 6f 75 67 68 | does a |thorough|
|000000d0| 20 74 65 73 74 20 6f 66 | 20 74 68 65 20 74 69 6d | test of| the tim|
|000000e0| 69 6e 67 20 61 6e 64 20 | 73 79 6e 63 68 72 6f 6e |ing and |synchron|
|000000f0| 69 7a 61 74 69 6f 6e 20 | 6f 66 20 65 61 63 68 20 |ization |of each |
|00000100| 76 69 64 65 6f 0d 73 63 | 72 65 65 6e 2c 20 61 73 |video.sc|reen, as|
|00000110| 20 77 65 6c 6c 20 61 73 | 20 74 68 65 20 69 6e 74 | well as| the int|
|00000120| 65 67 72 69 74 79 20 6f | 66 20 74 68 65 20 63 6c |egrity o|f the cl|
|00000130| 75 74 20 68 61 72 64 77 | 61 72 65 20 61 6e 64 20 |ut hardw|are and |
|00000140| 73 6f 66 74 77 61 72 65 | 2c 20 61 6e 64 20 73 61 |software|, and sa|
|00000150| 76 65 73 0d 74 68 65 20 | 72 65 73 75 6c 74 73 20 |ves.the |results |
|00000160| 69 6e 20 73 65 6c 66 2d | 65 78 70 6c 61 6e 61 74 |in self-|explanat|
|00000170| 6f 72 79 20 74 65 78 74 | 20 66 69 6c 65 2c 20 d2 |ory text| file, .|
|00000180| 54 69 6d 65 56 69 64 65 | 6f 20 72 65 73 75 6c 74 |TimeVide|o result|
|00000190| 73 d3 2e 20 41 20 64 69 | 73 63 75 73 73 69 6f 6e |s.. A di|scussion|
|000001a0| 0d 6f 66 20 6d 6f 76 69 | 65 73 2c 20 6c 6f 6f 6b |.of movi|es, look|
|000001b0| 75 70 20 74 61 62 6c 65 | 20 61 6e 69 6d 61 74 69 |up table| animati|
|000001c0| 6f 6e 2c 20 61 6e 64 20 | 73 79 6e 63 68 72 6f 6e |on, and |synchron|
|000001d0| 69 7a 61 74 69 6f 6e 20 | 61 70 70 65 61 72 73 20 |ization |appears |
|000001e0| 69 6e 20 74 68 65 0d 56 | 69 64 65 6f 54 6f 6f 6c |in the.V|ideoTool|
|000001f0| 62 6f 78 20 d2 56 69 64 | 65 6f 20 73 79 6e 63 68 |box .Vid|eo synch|
|00000200| d3 20 66 69 6c 65 2e 20 | 54 68 65 20 6d 61 6e 79 |. file. |The many|
|00000210| 20 76 69 64 65 6f 20 64 | 72 69 76 65 72 20 62 75 | video d|river bu|
|00000220| 67 73 20 75 6e 63 6f 76 | 65 72 65 64 20 62 79 0d |gs uncov|ered by.|
|00000230| 54 69 6d 65 56 69 64 65 | 6f 20 61 6e 64 20 69 74 |TimeVide|o and it|
|00000240| 73 20 70 72 65 64 65 63 | 65 73 73 6f 72 73 20 61 |s predec|essors a|
|00000250| 72 65 20 72 65 70 6f 72 | 74 65 64 20 69 6e 20 74 |re repor|ted in t|
|00000260| 68 61 74 20 66 69 6c 65 | 2e 20 28 46 6f 72 20 65 |hat file|. (For e|
|00000270| 78 61 6d 70 6c 65 2c 20 | 74 68 65 0d 54 72 75 65 |xample, |the.True|
|00000280| 56 69 73 69 6f 6e 20 4e | 75 56 69 73 74 61 20 64 |Vision N|uVista d|
|00000290| 72 69 76 65 72 20 61 73 | 73 75 6d 65 73 20 7a 65 |river as|sumes ze|
|000002a0| 72 6f 20 73 74 61 72 74 | 20 69 6e 20 31 36 2d 20 |ro start| in 16- |
|000002b0| 61 6e 64 20 33 32 2d 62 | 69 74 20 6d 6f 64 65 73 |and 32-b|it modes|
|000002c0| 2e 29 20 50 6c 65 61 73 | 65 0d 61 64 64 20 79 6f |.) Pleas|e.add yo|
|000002d0| 75 72 20 72 65 73 75 6c | 74 73 20 62 79 20 65 6d |ur resul|ts by em|
|000002e0| 61 69 6c 69 6e 67 20 79 | 6f 75 72 20 d2 54 69 6d |ailing y|our .Tim|
|000002f0| 65 56 69 64 65 6f 20 72 | 65 70 6f 72 74 d3 20 74 |eVideo r|eport. t|
|00000300| 6f 20 64 65 6e 69 73 5f | 70 65 6c 6c 69 40 69 73 |o denis_|pelli@is|
|00000310| 72 2e 73 79 72 2e 65 64 | 75 2e 0d 0d 44 65 73 70 |r.syr.ed|u...Desp|
|00000320| 69 74 65 20 41 70 70 6c | 65 27 73 20 72 75 6c 65 |ite Appl|e's rule|
|00000330| 73 20 74 68 61 74 20 72 | 65 71 75 69 72 65 20 69 |s that r|equire i|
|00000340| 74 2c 20 61 20 66 65 77 | 20 76 69 64 65 6f 20 64 |t, a few| video d|
|00000350| 72 69 76 65 72 73 20 64 | 6f 6e 27 74 20 61 6c 6c |rivers d|on't all|
|00000360| 6f 77 20 79 6f 75 20 74 | 6f 0d 72 65 61 64 20 74 |ow you t|o.read t|
|00000370| 68 65 20 63 6c 75 74 20 | 28 69 2e 65 2e 20 75 73 |he clut |(i.e. us|
|00000380| 65 20 47 44 47 65 74 45 | 6e 74 72 69 65 73 29 2c |e GDGetE|ntries),|
|00000390| 20 6f 72 20 63 72 61 73 | 68 20 69 66 20 79 6f 75 | or cras|h if you|
|000003a0| 20 61 74 74 65 6d 70 74 | 20 69 74 2e 20 47 44 47 | attempt| it. GDG|
|000003b0| 65 74 45 6e 74 72 69 65 | 73 0d 28 69 6e 20 47 44 |etEntrie|s.(in GD|
|000003c0| 56 69 64 65 6f 2e 63 29 | 20 63 68 65 63 6b 73 20 |Video.c)| checks |
|000003d0| 61 67 61 69 6e 73 74 20 | 61 20 6c 69 73 74 20 6f |against |a list o|
|000003e0| 66 20 6b 6e 6f 77 6e 20 | 6f 66 66 65 6e 64 65 72 |f known |offender|
|000003f0| 73 20 61 6e 64 20 72 65 | 74 75 72 6e 73 20 61 20 |s and re|turns a |
|00000400| 73 74 61 74 75 73 45 72 | 72 0d 69 73 20 74 68 65 |statusEr|r.is the|
|00000410| 20 63 61 6c 6c 20 69 73 | 20 6e 6f 74 20 75 73 61 | call is| not usa|
|00000420| 62 6c 65 2e 20 49 66 20 | 77 65 20 63 61 6e 27 74 |ble. If |we can't|
|00000430| 20 75 73 65 20 47 44 47 | 65 74 45 6e 74 72 69 65 | use GDG|etEntrie|
|00000440| 73 20 74 68 65 6e 20 77 | 65 20 66 61 6c 6c 20 62 |s then w|e fall b|
|00000450| 61 63 6b 20 74 6f 20 61 | 0d 76 69 73 75 61 6c 20 |ack to a|.visual |
|00000460| 74 65 73 74 20 6f 66 20 | 74 68 65 20 63 6c 75 74 |test of |the clut|
|00000470| 2c 20 63 6f 6d 70 61 72 | 69 6e 67 20 61 20 70 61 |, compar|ing a pa|
|00000480| 72 74 69 63 75 6c 61 72 | 20 77 61 79 20 6f 66 20 |rticular| way of |
|00000490| 6c 6f 61 64 69 6e 67 20 | 74 68 65 20 63 6c 75 74 |loading |the clut|
|000004a0| 0d 61 67 61 69 6e 73 74 | 20 74 68 65 20 73 74 61 |.against| the sta|
|000004b0| 6e 64 61 72 64 20 77 61 | 79 20 6f 66 20 6c 6f 61 |ndard wa|y of loa|
|000004c0| 64 69 6e 67 20 74 68 65 | 20 63 6c 75 74 2e 20 41 |ding the| clut. A|
|000004d0| 6e 79 20 76 69 73 69 62 | 6c 65 20 63 68 61 6e 67 |ny visib|le chang|
|000004e0| 65 20 62 65 74 77 65 65 | 6e 20 74 68 65 73 65 20 |e betwee|n these |
|000004f0| 0d 74 77 6f 20 63 6f 6e | 64 69 74 69 6f 6e 73 20 |.two con|ditions |
|00000500| 73 75 67 67 65 73 74 73 | 20 61 6e 20 65 72 72 6f |suggests| an erro|
|00000510| 72 20 69 6e 20 74 68 65 | 20 6e 6f 6e 2d 73 74 61 |r in the| non-sta|
|00000520| 6e 64 61 72 64 20 77 61 | 79 20 6f 66 20 6c 6f 61 |ndard wa|y of loa|
|00000530| 64 69 6e 67 20 74 68 65 | 20 63 6c 75 74 2e 0d 0d |ding the| clut...|
|00000540| 42 55 47 53 3a 0d 56 65 | 72 73 69 6f 6e 20 31 2e |BUGS:.Ve|rsion 1.|
|00000550| 30 20 68 75 6e 67 20 75 | 70 20 6f 6e 20 61 20 50 |0 hung u|p on a P|
|00000560| 6f 77 65 72 42 6f 6f 6b | 20 31 37 30 20 77 69 74 |owerBook| 170 wit|
|00000570| 68 20 61 6e 20 45 6e 76 | 69 73 69 6f 20 76 69 64 |h an Env|isio vid|
|00000580| 65 6f 20 61 64 61 70 74 | 65 72 2e 20 49 20 64 69 |eo adapt|er. I di|
|00000590| 64 6e 27 74 20 0d 68 61 | 76 65 20 61 20 63 68 61 |dn't .ha|ve a cha|
|000005a0| 6e 63 65 20 74 6f 20 66 | 69 67 75 72 65 20 6f 75 |nce to f|igure ou|
|000005b0| 74 20 77 68 79 2e 20 49 | 74 20 77 6f 72 6b 73 20 |t why. I|t works |
|000005c0| 66 69 6e 65 20 6f 6e 20 | 6d 79 20 6f 72 64 69 6e |fine on |my ordin|
|000005d0| 61 72 79 20 50 6f 77 65 | 72 42 6f 6f 6b 20 31 37 |ary Powe|rBook 17|
|000005e0| 30 2e 0d 0d 48 49 53 54 | 4f 52 59 3a 0d 38 2f 32 |0...HIST|ORY:.8/2|
|000005f0| 33 2f 39 32 09 64 67 70 | 09 77 72 6f 74 65 20 69 |3/92.dgp|.wrote i|
|00000600| 74 2c 20 62 61 73 65 64 | 20 6f 6e 20 6d 79 20 54 |t, based| on my T|
|00000610| 69 6d 65 43 50 55 2e 63 | 0d 38 2f 32 36 2f 39 32 |imeCPU.c|.8/26/92|
|00000620| 09 64 67 70 20 70 72 69 | 6e 74 20 74 68 65 20 64 |.dgp pri|nt the d|
|00000630| 72 69 76 65 72 20 76 65 | 72 73 69 6f 6e 20 6f 6e |river ve|rsion on|
|00000640| 6c 79 20 69 66 20 69 74 | 27 73 20 6e 6f 6e 7a 65 |ly if it|'s nonze|
|00000650| 72 6f 2e 0d 09 09 09 61 | 64 64 65 64 20 73 75 6d |ro.....a|dded sum|
|00000660| 6d 61 72 79 20 61 74 20 | 65 6e 64 20 6f 66 20 70 |mary at |end of p|
|00000670| 72 69 6e 74 6f 75 74 2e | 0d 39 2f 39 2f 39 32 09 |rintout.|.9/9/92.|
|00000680| 64 67 70 09 63 68 61 6e | 67 65 64 20 70 72 69 6e |dgp.chan|ged prin|
|00000690| 74 6f 75 74 20 6f 66 20 | 73 79 73 74 65 6d 20 76 |tout of |system v|
|000006a0| 62 6c 20 72 61 74 65 20 | 66 72 6f 6d 20 25 2e 31 |bl rate |from %.1|
|000006b0| 66 20 74 6f 20 25 2e 32 | 66 0d 09 09 09 41 64 64 |f to %.2|f....Add|
|000006c0| 65 64 20 6d 6f 76 69 65 | 20 72 61 74 65 20 74 6f |ed movie| rate to|
|000006d0| 20 6d 65 61 73 75 72 65 | 6d 65 6e 74 73 20 61 6e | measure|ments an|
|000006e0| 64 20 70 72 69 6e 74 6f | 75 74 2e 0d 39 2f 31 35 |d printo|ut..9/15|
|000006f0| 2f 39 32 09 64 67 70 09 | 6d 61 64 65 20 63 6f 6d |/92.dgp.|made com|
|00000700| 70 61 74 69 62 6c 65 20 | 77 69 74 68 20 53 79 73 |patible |with Sys|
|00000710| 74 65 6d 20 36 2e 30 34 | 2e 20 41 64 64 65 64 20 |tem 6.04|. Added |
|00000720| 68 65 61 64 65 72 20 74 | 6f 20 72 65 73 75 6c 74 |header t|o result|
|00000730| 73 20 66 69 6c 65 2e 0d | 39 2f 31 37 2f 39 32 09 |s file..|9/17/92.|
|00000740| 64 67 70 09 41 64 64 65 | 64 20 51 55 49 43 4b 4c |dgp.Adde|d QUICKL|
|00000750| 59 20 73 77 69 74 63 68 | 2c 20 74 6f 20 73 65 6c |Y switch|, to sel|
|00000760| 65 63 74 20 43 6f 70 79 | 42 69 74 73 20 6f 72 20 |ect Copy|Bits or |
|00000770| 43 6f 70 79 42 69 74 73 | 51 75 69 63 6b 6c 79 2e |CopyBits|Quickly.|
|00000780| 0d 31 30 2f 35 2f 39 32 | 09 64 67 70 09 63 6f 73 |.10/5/92|.dgp.cos|
|00000790| 6d 65 74 69 63 20 63 68 | 61 6e 67 65 73 0d 31 30 |metic ch|anges.10|
|000007a0| 2f 36 2f 39 32 09 64 67 | 70 09 72 65 70 6f 72 74 |/6/92.dg|p.report|
|000007b0| 20 70 72 6f 67 72 61 6d | 20 76 65 72 73 69 6f 6e | program| version|
|000007c0| 2e 20 55 73 65 20 66 72 | 61 6d 65 73 2f 63 6c 75 |. Use fr|ames/clu|
|000007d0| 74 20 75 70 64 61 74 65 | 20 61 73 20 74 68 65 20 |t update| as the |
|000007e0| 63 72 69 74 65 72 69 6f | 6e 20 66 6f 72 20 73 75 |criterio|n for su|
|000007f0| 6d 6d 61 72 79 2e 0d 31 | 30 2f 39 2f 39 32 09 64 |mmary..1|0/9/92.d|
|00000800| 67 70 09 46 69 78 65 64 | 20 73 75 6d 6d 61 72 79 |gp.Fixed| summary|
|00000810| 2e 20 54 6f 6f 20 73 6c | 6f 77 20 6d 65 61 6e 73 |. Too sl|ow means|
|00000820| 20 4d 4f 52 45 20 74 68 | 61 6e 20 6f 6e 65 20 66 | MORE th|an one f|
|00000830| 72 61 6d 65 20 70 65 72 | 20 63 6c 75 74 20 75 70 |rame per| clut up|
|00000840| 64 61 74 65 2e 0d 09 09 | 09 46 69 78 65 64 20 72 |date....|.Fixed r|
|00000850| 65 73 74 6f 72 61 74 69 | 6f 6e 20 6f 66 20 63 6c |estorati|on of cl|
|00000860| 75 74 20 69 6e 20 64 69 | 72 65 63 74 20 6d 6f 64 |ut in di|rect mod|
|00000870| 65 73 20 28 69 2e 65 2e | 20 31 36 20 61 6e 64 20 |es (i.e.| 16 and |
|00000880| 33 32 20 62 69 74 20 6d | 6f 64 65 73 29 2e 0d 09 |32 bit m|odes)...|
|00000890| 09 09 52 65 6e 61 6d 65 | 64 20 74 6f 20 47 44 52 |..Rename|d to GDR|
|000008a0| 65 73 74 6f 72 65 44 65 | 76 69 63 65 43 6c 75 74 |estoreDe|viceClut|
|000008b0| 20 61 6e 64 20 70 75 74 | 20 69 74 20 69 6e 20 47 | and put| it in G|
|000008c0| 44 56 69 64 65 6f 2e 63 | 2e 0d 31 30 2f 31 33 2f |DVideo.c|..10/13/|
|000008d0| 39 32 20 64 67 70 20 54 | 6f 6d 20 42 75 73 65 79 |92 dgp T|om Busey|
|000008e0| 20 72 65 70 6f 72 74 65 | 64 20 74 68 61 74 20 66 | reporte|d that f|
|000008f0| 72 61 6d 65 73 20 77 65 | 72 65 20 67 6f 69 6e 67 |rames we|re going|
|00000900| 20 75 6e 63 6f 75 6e 74 | 65 64 0d 09 09 09 64 75 | uncount|ed....du|
|00000910| 72 69 6e 67 20 74 68 65 | 20 63 6c 75 74 20 74 69 |ring the| clut ti|
|00000920| 6d 69 6e 67 2c 20 77 68 | 69 63 68 20 73 65 65 6d |ming, wh|ich seem|
|00000930| 73 20 74 6f 20 62 65 20 | 61 20 70 72 6f 62 6c 65 |s to be |a proble|
|00000940| 6d 20 77 69 74 68 20 73 | 6f 6d 65 20 76 69 64 65 |m with s|ome vide|
|00000950| 6f 20 64 72 69 76 65 72 | 73 2e 0d 09 09 09 54 69 |o driver|s.....Ti|
|00000960| 6d 65 56 69 64 65 6f 20 | 6e 6f 77 20 72 65 70 6f |meVideo |now repo|
|00000970| 72 74 73 20 61 20 66 72 | 61 6d 65 20 63 6f 75 6e |rts a fr|ame coun|
|00000980| 74 20 62 61 73 65 64 20 | 73 6f 6c 65 6c 79 20 6f |t based |solely o|
|00000990| 6e 20 74 69 6d 69 6e 67 | 20 69 6e 20 73 65 63 73 |n timing| in secs|
|000009a0| 20 61 6e 64 0d 09 09 09 | 74 68 65 20 73 65 70 61 | and....|the sepa|
|000009b0| 72 61 74 65 6c 79 20 6d | 65 61 73 75 72 65 64 20 |rately m|easured |
|000009c0| 66 72 61 6d 65 20 72 61 | 74 65 2c 20 77 68 69 63 |frame ra|te, whic|
|000009d0| 68 20 73 65 65 6d 73 20 | 74 6f 20 62 65 20 61 20 |h seems |to be a |
|000009e0| 72 65 6c 69 61 62 6c 65 | 2e 0d 09 09 09 49 74 20 |reliable|.....It |
|000009f0| 61 6c 73 6f 20 64 6f 75 | 62 6c 65 20 63 68 65 63 |also dou|ble chec|
|00000a00| 6b 73 20 74 68 65 20 74 | 69 6d 69 6e 67 20 69 6e |ks the t|iming in|
|00000a10| 20 73 65 63 73 20 76 73 | 20 66 72 61 6d 65 73 2c | secs vs| frames,|
|00000a20| 20 61 6e 64 20 69 66 0d | 09 09 09 69 74 20 66 69 | and if.|...it fi|
|00000a30| 6e 64 73 20 61 20 64 69 | 73 63 72 65 70 61 6e 63 |nds a di|screpanc|
|00000a40| 79 2c 20 70 72 69 6e 74 | 73 20 61 20 77 61 72 6e |y, print|s a warn|
|00000a50| 69 6e 67 20 74 6f 20 74 | 68 65 20 73 63 72 65 65 |ing to t|he scree|
|00000a60| 6e 20 26 20 66 69 6c 65 | 2e 20 0d 31 30 2f 32 30 |n & file|. .10/20|
|00000a70| 2f 39 32 20 64 67 70 20 | 41 64 64 65 64 20 56 42 |/92 dgp |Added VB|
|00000a80| 4c 2f 66 72 61 6d 65 20 | 74 6f 20 73 75 6d 6d 61 |L/frame |to summa|
|00000a90| 72 79 2e 0d 31 32 2f 38 | 2f 39 32 09 64 67 70 20 |ry..12/8|/92.dgp |
|00000aa0| 4d 69 6e 6f 72 20 65 64 | 69 74 69 6e 67 20 6f 66 |Minor ed|iting of|
|00000ab0| 20 63 6f 6d 6d 65 6e 74 | 73 2e 0d 31 32 2f 39 2f | comment|s..12/9/|
|00000ac0| 39 32 09 64 67 70 09 31 | 2e 30 31 20 41 64 64 65 |92.dgp.1|.01 Adde|
|00000ad0| 64 20 5f 61 74 65 78 69 | 74 28 52 65 73 74 6f 72 |d _atexi|t(Restor|
|00000ae0| 65 43 6c 75 74 73 29 20 | 69 6e 20 63 61 73 65 20 |eCluts) |in case |
|00000af0| 75 73 65 72 20 71 75 69 | 74 73 20 70 72 65 6d 61 |user qui|ts prema|
|00000b00| 74 75 72 65 6c 79 2e 0d | 31 32 2f 31 31 2f 39 32 |turely..|12/11/92|
|00000b10| 20 64 67 70 20 31 2e 30 | 32 20 47 44 52 65 73 74 | dgp 1.0|2 GDRest|
|00000b20| 6f 72 65 42 6c 61 63 6b | 41 6e 64 57 68 69 74 65 |oreBlack|AndWhite|
|00000b30| 20 61 6c 6c 6f 63 61 74 | 65 73 20 73 74 61 63 6b | allocat|es stack|
|00000b40| 20 73 70 61 63 65 20 66 | 6f 72 20 6c 69 6e 65 61 | space f|or linea|
|00000b50| 72 54 61 62 6c 65 0d 09 | 09 09 6f 6e 6c 79 20 69 |rTable..|..only i|
|00000b60| 66 20 77 65 20 6e 65 65 | 64 20 69 74 2e 0d 31 32 |f we nee|d it..12|
|00000b70| 2f 33 30 2f 39 32 20 64 | 67 70 20 31 2e 30 33 20 |/30/92 d|gp 1.03 |
|00000b80| 63 6f 73 6d 65 74 69 63 | 20 63 68 61 6e 67 65 73 |cosmetic| changes|
|00000b90| 2e 0d 31 32 2f 33 30 2f | 39 32 20 64 67 70 20 31 |..12/30/|92 dgp 1|
|00000ba0| 2e 30 34 20 45 6e 68 61 | 6e 63 65 64 20 73 75 6d |.04 Enha|nced sum|
|00000bb0| 6d 61 72 79 20 74 6f 20 | 61 63 63 6f 75 6e 74 20 |mary to |account |
|00000bc0| 66 6f 72 20 4e 41 4e 20 | 77 68 65 6e 20 6e 6f 20 |for NAN |when no |
|00000bd0| 63 6c 75 74 20 61 63 63 | 65 73 73 20 69 73 20 61 |clut acc|ess is a|
|00000be0| 6c 6c 6f 77 65 64 2e 0d | 31 32 2f 33 30 2f 39 32 |llowed..|12/30/92|
|00000bf0| 20 64 67 70 20 31 2e 30 | 35 20 55 73 65 20 47 44 | dgp 1.0|5 Use GD|
|00000c00| 43 6c 75 74 53 69 7a 65 | 28 29 2e 0d 31 2f 36 2f |ClutSize|()..1/6/|
|00000c10| 39 33 09 64 67 70 09 20 | 31 2e 30 36 20 53 69 6d |93.dgp. |1.06 Sim|
|00000c20| 70 6c 69 66 69 65 64 20 | 47 44 52 65 73 74 6f 72 |plified |GDRestor|
|00000c30| 65 42 6c 61 63 6b 41 6e | 64 57 68 69 74 65 2c 20 |eBlackAn|dWhite, |
|00000c40| 65 6c 69 6d 69 6e 61 74 | 65 64 20 6c 69 6e 65 61 |eliminat|ed linea|
|00000c50| 72 54 61 62 6c 65 2e 0d | 31 2f 37 2f 39 33 09 64 |rTable..|1/7/93.d|
|00000c60| 67 70 20 20 31 2e 30 37 | 20 49 6e 63 6c 75 64 65 |gp 1.07| Include|
|00000c70| 64 20 69 6e 20 56 69 64 | 65 6f 54 6f 6f 6c 62 6f |d in Vid|eoToolbo|
|00000c80| 78 2d 31 2d 39 33 2e 73 | 65 61 0d 31 2f 38 2f 39 |x-1-93.s|ea.1/8/9|
|00000c90| 33 09 64 67 70 09 20 31 | 2e 30 38 20 41 64 64 65 |3.dgp. 1|.08 Adde|
|00000ca0| 64 20 49 6e 66 6f 2d 4d | 61 63 20 74 6f 20 72 65 |d Info-M|ac to re|
|00000cb0| 70 6f 72 74 20 66 69 6c | 65 2e 0d 31 2f 31 31 2f |port fil|e..1/11/|
|00000cc0| 39 33 09 64 67 70 09 20 | 31 2e 30 39 20 49 6e 20 |93.dgp. |1.09 In |
|00000cd0| 72 65 73 70 6f 6e 73 65 | 20 74 6f 20 62 75 67 20 |response| to bug |
|00000ce0| 72 65 70 6f 72 74 20 66 | 72 6f 6d 20 6a 6f 6e 61 |report f|rom jona|
|00000cf0| 74 68 61 6e 20 62 72 65 | 63 68 65 72 2c 20 61 64 |than bre|cher, ad|
|00000d00| 64 65 64 20 73 75 70 70 | 6f 72 74 0d 09 09 09 66 |ded supp|ort....f|
|00000d10| 6f 72 20 63 6f 6d 70 75 | 74 65 72 73 20 74 68 61 |or compu|ters tha|
|00000d20| 74 20 6c 61 63 6b 20 43 | 6f 6c 6f 72 20 51 75 69 |t lack C|olor Qui|
|00000d30| 63 6b 44 72 61 77 2e 0d | 31 2f 31 35 2f 39 33 09 |ckDraw..|1/15/93.|
|00000d40| 64 67 70 09 31 2e 31 30 | 20 41 64 64 65 64 20 76 |dgp.1.10| Added v|
|00000d50| 65 72 73 69 6f 6e 20 72 | 65 73 6f 75 72 63 65 2e |ersion r|esource.|
|00000d60| 0d 31 2f 31 38 2f 39 33 | 09 64 67 70 09 31 2e 31 |.1/18/93|.dgp.1.1|
|00000d70| 31 20 55 70 64 61 74 65 | 64 20 74 68 65 20 65 78 |1 Update|d the ex|
|00000d80| 70 6c 61 6e 61 74 6f 72 | 79 20 74 65 78 74 2e 0d |planator|y text..|
|00000d90| 31 2f 32 34 2f 39 33 20 | 64 67 70 09 31 2e 31 32 |1/24/93 |dgp.1.12|
|00000da0| 20 55 70 64 61 74 65 64 | 20 74 68 65 20 65 78 70 | Updated| the exp|
|00000db0| 6c 61 6e 61 74 6f 72 79 | 20 74 65 78 74 2e 0d 32 |lanatory| text..2|
|00000dc0| 2f 36 2f 39 33 20 64 67 | 70 09 31 2e 31 33 20 52 |/6/93 dg|p.1.13 R|
|00000dd0| 65 70 6f 72 74 20 52 4f | 4d 20 76 65 72 73 69 6f |eport RO|M versio|
|00000de0| 6e 2e 0d 32 2f 31 35 2f | 39 33 20 64 67 70 09 31 |n..2/15/|93 dgp.1|
|00000df0| 2e 31 34 20 52 65 70 6f | 72 74 20 52 4f 4d 20 76 |.14 Repo|rt ROM v|
|00000e00| 65 72 73 69 6f 6e 20 61 | 73 20 31 32 34 2b 36 2a |ersion a|s 124+6*|
|00000e10| 32 35 36 2e 0d 32 2f 32 | 32 2f 39 33 09 64 67 70 |256..2/2|2/93.dgp|
|00000e20| 09 31 2e 31 35 20 52 65 | 63 6f 6d 70 69 6c 65 64 |.1.15 Re|compiled|
|00000e30| 2e 0d 32 2f 32 37 2f 39 | 33 09 64 67 70 09 31 2e |..2/27/9|3.dgp.1.|
|00000e40| 31 36 20 52 65 63 6f 6d | 70 69 6c 65 64 20 77 69 |16 Recom|piled wi|
|00000e50| 74 68 20 6e 65 77 20 49 | 64 65 6e 74 69 66 79 2e |th new I|dentify.|
|00000e60| 63 2e 0d 33 2f 31 30 2f | 39 33 09 64 67 70 09 31 |c..3/10/|93.dgp.1|
|00000e70| 2e 31 37 20 43 68 6f 6f | 73 65 20 61 20 76 61 6c |.17 Choo|se a val|
|00000e80| 69 64 20 6d 6f 64 65 20 | 66 6f 72 20 77 68 69 63 |id mode |for whic|
|00000e90| 68 20 74 6f 20 70 72 69 | 6e 74 20 74 68 65 20 66 |h to pri|nt the f|
|00000ea0| 72 61 6d 65 20 72 61 74 | 65 2e 0d 09 09 09 09 20 |rame rat|e...... |
|00000eb0| 4d 6f 76 65 64 20 61 6c | 6c 20 74 68 65 20 74 69 |Moved al|l the ti|
|00000ec0| 6d 69 6e 67 20 63 6f 64 | 65 20 69 6e 74 6f 20 47 |ming cod|e into G|
|00000ed0| 44 49 6e 66 6f 2e 63 2c | 20 73 6f 20 74 68 69 73 |DInfo.c,| so this|
|00000ee0| 20 72 6f 75 74 69 6e 65 | 20 6a 75 73 74 20 70 72 | routine| just pr|
|00000ef0| 69 6e 74 73 2e 0d 33 2f | 31 32 2f 39 33 09 64 67 |ints..3/|12/93.dg|
|00000f00| 70 09 09 52 65 6f 72 67 | 61 6e 69 7a 65 64 20 74 |p..Reorg|anized t|
|00000f10| 68 65 20 70 72 69 6e 74 | 6f 75 74 20 61 6e 64 20 |he print|out and |
|00000f20| 61 64 64 65 64 20 54 65 | 73 74 43 6c 75 74 73 27 |added Te|stCluts'|
|00000f30| 73 20 63 61 70 61 62 69 | 6c 69 74 69 65 73 2e 0d |s capabi|lities..|
|00000f40| 33 2f 31 33 2f 39 33 09 | 64 67 70 09 09 41 64 64 |3/13/93.|dgp..Add|
|00000f50| 65 64 20 68 69 67 68 2d | 70 72 69 6f 72 69 74 79 |ed high-|priority|
|00000f60| 20 74 69 6d 69 6e 67 2e | 0d 33 2f 31 36 2f 39 33 | timing.|.3/16/93|
|00000f70| 09 64 67 70 09 32 2e 30 | 20 41 64 64 65 64 20 76 |.dgp.2.0| Added v|
|00000f80| 69 73 75 61 6c 20 68 61 | 73 68 20 69 6e 73 70 65 |isual ha|sh inspe|
|00000f90| 63 74 69 6f 6e 2e 0d 33 | 2f 33 31 2f 39 33 09 64 |ction..3|/31/93.d|
|00000fa0| 67 70 09 32 2e 31 20 52 | 65 6c 65 61 73 65 20 76 |gp.2.1 R|elease v|
|00000fb0| 65 72 73 69 6f 6e 2c 20 | 63 6c 75 74 20 74 65 73 |ersion, |clut tes|
|00000fc0| 74 20 73 65 65 6d 73 20 | 74 6f 20 77 6f 72 6b 2e |t seems |to work.|
|00000fd0| 0d 2a 2f 0d 23 69 6e 63 | 6c 75 64 65 20 22 56 69 |.*/.#inc|lude "Vi|
|00000fe0| 64 65 6f 54 6f 6f 6c 62 | 6f 78 2e 68 22 0d 23 69 |deoToolb|ox.h".#i|
|00000ff0| 6e 63 6c 75 64 65 20 3c | 50 61 63 6b 61 67 65 73 |nclude <|Packages|
|00001000| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 54 72 |.h>.#inc|lude <Tr|
|00001010| 61 70 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |aps.h>.#|include |
|00001020| 3c 6d 61 74 68 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |<math.h>|.#includ|
|00001030| 65 20 22 47 44 49 6e 66 | 6f 2e 68 22 0d 76 6f 69 |e "GDInf|o.h".voi|
|00001040| 64 20 54 69 6d 65 56 69 | 64 65 6f 28 76 6f 69 64 |d TimeVi|deo(void|
|00001050| 29 3b 0d 76 6f 69 64 20 | 50 72 69 6e 74 43 61 72 |);.void |PrintCar|
|00001060| 64 28 46 49 4c 45 20 2a | 6f 5b 32 5d 2c 47 44 48 |d(FILE *|o[2],GDH|
|00001070| 61 6e 64 6c 65 20 64 65 | 76 69 63 65 2c 56 69 64 |andle de|vice,Vid|
|00001080| 65 6f 43 61 72 64 20 2a | 63 61 72 64 29 3b 0d 76 |eoCard *|card);.v|
|00001090| 6f 69 64 20 47 44 52 65 | 73 74 6f 72 65 42 6c 61 |oid GDRe|storeBla|
|000010a0| 63 6b 41 6e 64 57 68 69 | 74 65 28 47 44 48 61 6e |ckAndWhi|te(GDHan|
|000010b0| 64 6c 65 20 64 65 76 69 | 63 65 29 3b 0d 23 64 65 |dle devi|ce);.#de|
|000010c0| 66 69 6e 65 20 56 45 52 | 53 49 4f 4e 20 22 32 2e |fine VER|SION "2.|
|000010d0| 31 22 0d 0d 76 6f 69 64 | 20 6d 61 69 6e 28 76 6f |1"..void| main(vo|
|000010e0| 69 64 29 0d 7b 0d 09 52 | 65 71 75 69 72 65 28 67 |id).{..R|equire(g|
|000010f0| 65 73 74 61 6c 74 4f 72 | 69 67 69 6e 61 6c 51 44 |estaltOr|iginalQD|
|00001100| 29 3b 0d 09 54 69 6d 65 | 56 69 64 65 6f 28 29 3b |);..Time|Video();|
|00001110| 0d 7d 0d 0d 76 6f 69 64 | 20 54 69 6d 65 56 69 64 |.}..void| TimeVid|
|00001120| 65 6f 28 76 6f 69 64 29 | 0d 7b 0d 09 6c 6f 6e 67 |eo(void)|.{..long|
|00001130| 20 73 79 73 74 65 6d 3b | 0d 09 63 68 61 72 20 73 | system;|..char s|
|00001140| 74 72 69 6e 67 5b 31 30 | 30 30 5d 2c 64 61 74 61 |tring[10|00],data|
|00001150| 66 69 6c 65 6e 61 6d 65 | 5b 5d 3d 22 54 69 6d 65 |filename|[]="Time|
|00001160| 56 69 64 65 6f 20 72 65 | 73 75 6c 74 73 22 3b 0d |Video re|sults";.|
|00001170| 09 46 49 4c 45 20 2a 6f | 5b 32 5d 2c 2a 64 61 74 |.FILE *o|[2],*dat|
|00001180| 61 46 69 6c 65 3b 0d 09 | 69 6e 74 20 6e 65 77 44 |aFile;..|int newD|
|00001190| 61 74 61 46 69 6c 65 3b | 0d 09 75 6e 73 69 67 6e |ataFile;|..unsign|
|000011a0| 65 64 20 6c 6f 6e 67 20 | 74 69 6d 65 3b 0d 09 53 |ed long |time;..S|
|000011b0| 74 72 32 35 35 20 74 6f | 64 61 79 53 74 72 3b 0d |tr255 to|dayStr;.|
|000011c0| 09 47 44 48 61 6e 64 6c | 65 20 64 65 76 69 63 65 |.GDHandl|e device|
|000011d0| 3b 0d 09 73 68 6f 72 74 | 20 69 2c 6d 2c 65 72 72 |;..short| i,m,err|
|000011e0| 6f 72 2c 6f 6c 64 50 69 | 78 65 6c 53 69 7a 65 2c |or,oldPi|xelSize,|
|000011f0| 6d 6f 64 65 2c 63 61 72 | 64 73 2c 6d 6f 64 65 73 |mode,car|ds,modes|
|00001200| 3b 0d 09 64 6f 75 62 6c | 65 20 66 72 61 6d 65 73 |;..doubl|e frames|
|00001210| 2c 73 2c 76 62 6c 50 65 | 72 46 72 61 6d 65 2c 66 |,s,vblPe|rFrame,f|
|00001220| 3b 0d 09 52 65 63 74 20 | 72 3b 0d 09 73 74 61 74 |;..Rect |r;..stat|
|00001230| 69 63 20 56 69 64 65 6f | 43 61 72 64 20 63 61 72 |ic Video|Card car|
|00001240| 64 5b 4d 41 58 5f 53 43 | 52 45 45 4e 53 5d 3b 09 |d[MAX_SC|REENS];.|
|00001250| 2f 2f 20 22 73 74 61 74 | 69 63 22 20 77 69 6c 6c |// "stat|ic" will|
|00001260| 20 69 6e 69 74 69 61 6c | 69 7a 65 20 74 6f 20 7a | initial|ize to z|
|00001270| 65 72 6f 2e 0d 09 56 69 | 64 65 6f 43 61 72 64 43 |ero...Vi|deoCardC|
|00001280| 6c 75 74 54 65 73 74 20 | 2a 63 6c 75 74 3b 0d 09 |lutTest |*clut;..|
|00001290| 73 68 6f 72 74 20 76 69 | 73 75 61 6c 54 65 73 74 |short vi|sualTest|
|000012a0| 2c 68 61 73 68 54 65 73 | 74 3b 0d 09 0d 09 53 74 |,hashTes|t;....St|
|000012b0| 61 63 6b 47 72 6f 77 28 | 31 30 30 30 30 29 3b 0d |ackGrow(|10000);.|
|000012c0| 09 4d 61 78 69 6d 69 7a | 65 43 6f 6e 73 6f 6c 65 |.Maximiz|eConsole|
|000012d0| 48 65 69 67 68 74 28 29 | 3b 0d 09 23 69 66 20 54 |Height()|;..#if T|
|000012e0| 48 49 4e 4b 5f 43 0d 09 | 09 63 6f 6e 73 6f 6c 65 |HINK_C..|.console|
|000012f0| 5f 6f 70 74 69 6f 6e 73 | 2e 74 69 74 6c 65 3d 22 |_options|.title="|
|00001300| 5c 70 54 69 6d 65 56 69 | 64 65 6f 22 3b 0d 09 23 |\pTimeVi|deo";..#|
|00001310| 65 6e 64 69 66 0d 09 70 | 72 69 6e 74 66 28 22 5c |endif..p|rintf("\|
|00001320| 6e 22 29 3b 09 2f 2f 20 | 61 73 6b 20 54 48 49 4e |n");.// |ask THIN|
|00001330| 4b 20 43 20 74 6f 20 69 | 6e 69 74 69 61 6c 69 7a |K C to i|nitializ|
|00001340| 65 20 71 75 69 63 6b 64 | 72 61 77 0d 09 0d 09 73 |e quickd|raw....s|
|00001350| 70 72 69 6e 74 66 28 73 | 74 72 69 6e 67 2c 22 57 |printf(s|tring,"W|
|00001360| 65 6c 63 6f 6d 65 20 74 | 6f 20 54 69 6d 65 56 69 |elcome t|o TimeVi|
|00001370| 64 65 6f 20 22 20 56 45 | 52 53 49 4f 4e 20 22 5c |deo " VE|RSION "\|
|00001380| 6e 5c 6e 22 0d 09 22 54 | 68 69 73 20 70 72 6f 67 |n\n".."T|his prog|
|00001390| 72 61 6d 20 77 69 6c 6c | 20 74 68 6f 72 6f 75 67 |ram will| thoroug|
|000013a0| 68 6c 79 20 74 65 73 74 | 20 61 6c 6c 20 79 6f 75 |hly test| all you|
|000013b0| 72 20 76 69 64 65 6f 20 | 64 65 76 69 63 65 73 20 |r video |devices |
|000013c0| 61 6e 64 20 73 61 76 65 | 20 74 68 65 20 22 0d 09 |and save| the "..|
|000013d0| 22 72 65 73 75 6c 74 73 | 20 69 6e 20 74 68 65 20 |"results| in the |
|000013e0| 74 65 78 74 20 66 69 6c | 65 20 d2 25 73 d3 2e 20 |text fil|e .%s.. |
|000013f0| 44 6f 6e d5 74 20 62 65 | 20 61 6c 61 72 6d 65 64 |Don.t be| alarmed|
|00001400| 20 62 79 20 74 68 65 20 | 73 74 72 61 6e 67 65 20 | by the |strange |
|00001410| 22 0d 09 22 61 6e 74 69 | 63 73 20 6f 66 20 79 6f |".."anti|cs of yo|
|00001420| 75 72 20 73 63 72 65 65 | 6e 73 2e 20 45 76 65 72 |ur scree|ns. Ever|
|00001430| 79 74 68 69 6e 67 20 77 | 69 6c 6c 20 73 6f 6f 6e |ything w|ill soon|
|00001440| 20 62 65 20 62 61 63 6b | 20 74 6f 20 6e 6f 72 6d | be back| to norm|
|00001450| 61 6c 2e 20 4a 75 73 74 | 20 73 69 74 20 62 61 63 |al. Just| sit bac|
|00001460| 6b 20 22 0d 09 22 61 6e | 64 20 65 6e 6a 6f 79 20 |k ".."an|d enjoy |
|00001470| 74 68 65 20 73 68 6f 77 | 2e 22 2c 64 61 74 61 66 |the show|.",dataf|
|00001480| 69 6c 65 6e 61 6d 65 29 | 3b 0d 09 73 70 72 69 6e |ilename)|;..sprin|
|00001490| 74 66 28 73 74 72 69 6e | 67 2c 22 25 73 20 59 6f |tf(strin|g,"%s Yo|
|000014a0| 75 20 6d 61 79 20 71 75 | 69 74 20 61 74 20 61 6e |u may qu|it at an|
|000014b0| 79 20 74 69 6d 65 20 62 | 79 20 68 69 74 74 69 6e |y time b|y hittin|
|000014c0| 67 20 43 6f 6d 6d 61 6e | 64 2d 70 65 72 69 6f 64 |g Comman|d-period|
|000014d0| 2e 22 2c 73 74 72 69 6e | 67 29 3b 0d 09 70 72 69 |.",strin|g);..pri|
|000014e0| 6e 74 66 28 42 72 65 61 | 6b 4c 69 6e 65 73 28 73 |ntf(Brea|kLines(s|
|000014f0| 74 72 69 6e 67 2c 38 30 | 29 29 3b 0d 09 70 72 69 |tring,80|));..pri|
|00001500| 6e 74 66 28 22 5c 6e 5c | 6e 57 6f 75 6c 64 20 79 |ntf("\n\|nWould y|
|00001510| 6f 75 20 6c 69 6b 65 20 | 74 68 65 20 74 65 73 74 |ou like |the test|
|00001520| 69 6e 67 20 74 6f 20 69 | 6e 63 6c 75 64 65 20 61 |ing to i|nclude a|
|00001530| 20 76 69 73 75 61 6c 20 | 69 6e 73 70 65 63 74 69 | visual |inspecti|
|00001540| 6f 6e 3f 22 29 3b 0d 09 | 76 69 73 75 61 6c 54 65 |on?");..|visualTe|
|00001550| 73 74 3d 59 65 73 4f 72 | 4e 6f 28 31 29 3b 0d 09 |st=YesOr|No(1);..|
|00001560| 70 72 69 6e 74 66 28 22 | 5c 6e 22 29 3b 0d 09 70 |printf("|\n");..p|
|00001570| 72 69 6e 74 66 28 42 72 | 65 61 6b 4c 69 6e 65 73 |rintf(Br|eakLines|
|00001580| 28 22 5c 6e 22 0d 09 09 | 22 54 69 6d 65 56 69 64 |("\n"...|"TimeVid|
|00001590| 65 6f 20 74 69 6d 65 73 | 20 65 76 65 72 79 74 68 |eo times| everyth|
|000015a0| 69 6e 67 3a 20 74 68 65 | 20 76 69 64 65 6f 20 66 |ing: the| video f|
|000015b0| 72 61 6d 65 73 2c 20 69 | 6e 74 65 72 72 75 70 74 |rames, i|nterrupt|
|000015c0| 73 2c 20 61 6e 64 20 63 | 6c 75 74 73 2e 20 41 6e |s, and c|luts. An|
|000015d0| 64 20 69 74 20 22 0d 09 | 09 22 64 65 74 65 72 6d |d it "..|."determ|
|000015e0| 69 6e 65 73 20 77 68 61 | 74 20 66 72 61 63 74 69 |ines wha|t fracti|
|000015f0| 6f 6e 20 6f 66 20 74 68 | 65 20 73 63 72 65 65 6e |on of th|e screen|
|00001600| 20 79 6f 75 20 63 61 6e | 20 66 69 6c 6c 20 77 69 | you can| fill wi|
|00001610| 74 68 20 61 20 72 65 61 | 6c 2d 74 69 6d 65 20 6d |th a rea|l-time m|
|00001620| 6f 76 69 65 20 73 68 6f | 77 6e 20 22 0d 09 09 22 |ovie sho|wn "..."|
|00001630| 62 79 20 43 6f 70 79 42 | 69 74 73 28 29 20 6f 72 |by CopyB|its() or|
|00001640| 20 43 6f 70 79 42 69 74 | 73 51 75 69 63 6b 6c 79 | CopyBit|sQuickly|
|00001650| 28 29 2e 20 54 68 65 6e | 20 69 74 20 64 6f 65 73 |(). Then| it does|
|00001660| 20 77 72 69 74 65 2d 74 | 68 65 6e 2d 72 65 61 64 | write-t|hen-read|
|00001670| 20 74 65 73 74 73 20 6f | 66 20 74 68 65 20 22 0d | tests o|f the ".|
|00001680| 09 09 22 63 6c 75 74 2c | 20 74 6f 20 6d 61 6b 65 |.."clut,| to make|
|00001690| 20 73 75 72 65 20 74 68 | 65 20 68 61 72 64 77 61 | sure th|e hardwa|
|000016a0| 72 65 20 61 6e 64 20 73 | 6f 66 74 77 61 72 65 2c |re and s|oftware,|
|000016b0| 20 47 44 53 65 74 45 6e | 74 72 69 65 73 20 6f 72 | GDSetEn|tries or|
|000016c0| 20 53 65 74 45 6e 74 72 | 69 65 73 51 75 69 63 6b | SetEntr|iesQuick|
|000016d0| 6c 79 2c 20 22 0d 09 09 | 22 61 72 65 20 77 6f 72 |ly, "...|"are wor|
|000016e0| 6b 69 6e 67 20 63 6f 72 | 72 65 63 74 6c 79 2e 5c |king cor|rectly.\|
|000016f0| 6e 5c 6e 22 2c 38 30 29 | 29 3b 0d 09 64 61 74 61 |n\n",80)|);..data|
|00001700| 46 69 6c 65 3d 66 6f 70 | 65 6e 28 64 61 74 61 66 |File=fop|en(dataf|
|00001710| 69 6c 65 6e 61 6d 65 2c | 22 72 22 29 3b 0d 09 69 |ilename,|"r");..i|
|00001720| 66 28 64 61 74 61 46 69 | 6c 65 21 3d 4e 55 4c 4c |f(dataFi|le!=NULL|
|00001730| 29 66 63 6c 6f 73 65 28 | 64 61 74 61 46 69 6c 65 |)fclose(|dataFile|
|00001740| 29 3b 0d 09 6e 65 77 44 | 61 74 61 46 69 6c 65 3d |);..newD|ataFile=|
|00001750| 28 64 61 74 61 46 69 6c | 65 3d 3d 4e 55 4c 4c 29 |(dataFil|e==NULL)|
|00001760| 3b 0d 09 6f 5b 30 5d 3d | 73 74 64 6f 75 74 3b 0d |;..o[0]=|stdout;.|
|00001770| 09 6f 5b 31 5d 3d 64 61 | 74 61 46 69 6c 65 3d 66 |.o[1]=da|taFile=f|
|00001780| 6f 70 65 6e 28 64 61 74 | 61 66 69 6c 65 6e 61 6d |open(dat|afilenam|
|00001790| 65 2c 22 61 22 29 3b 09 | 2f 2a 20 41 70 70 65 6e |e,"a");.|/* Appen|
|000017a0| 64 20 74 6f 20 64 61 74 | 61 20 66 69 6c 65 20 2a |d to dat|a file *|
|000017b0| 2f 0d 09 69 66 28 64 61 | 74 61 46 69 6c 65 21 3d |/..if(da|taFile!=|
|000017c0| 4e 55 4c 4c 29 53 65 74 | 46 69 6c 65 49 6e 66 6f |NULL)Set|FileInfo|
|000017d0| 28 64 61 74 61 66 69 6c | 65 6e 61 6d 65 2c 27 54 |(datafil|ename,'T|
|000017e0| 45 58 54 27 2c 27 74 74 | 78 74 27 29 3b 0d 09 65 |EXT','tt|xt');..e|
|000017f0| 6c 73 65 20 70 72 69 6e | 74 66 28 22 43 6f 75 6c |lse prin|tf("Coul|
|00001800| 64 20 6e 65 69 74 68 65 | 72 20 6f 70 65 6e 20 6e |d neithe|r open n|
|00001810| 6f 72 20 63 72 65 61 74 | 65 20 5c 22 25 73 5c 22 |or creat|e \"%s\"|
|00001820| 2e 20 50 65 72 68 61 70 | 73 20 79 6f 75 72 20 64 |. Perhap|s your d|
|00001830| 69 73 6b 20 69 73 20 6c | 6f 63 6b 65 64 2e 5c 6e |isk is l|ocked.\n|
|00001840| 22 2c 64 61 74 61 66 69 | 6c 65 6e 61 6d 65 29 3b |",datafi|lename);|
|00001850| 0d 09 69 66 28 6e 65 77 | 44 61 74 61 46 69 6c 65 |..if(new|DataFile|
|00001860| 29 7b 0d 09 09 66 70 72 | 69 6e 74 66 28 64 61 74 |){...fpr|intf(dat|
|00001870| 61 46 69 6c 65 2c 42 72 | 65 61 6b 4c 69 6e 65 73 |aFile,Br|eakLines|
|00001880| 28 0d 09 09 22 54 68 69 | 73 20 64 61 74 61 20 66 |(..."Thi|s data f|
|00001890| 69 6c 65 20 20 72 65 70 | 6f 72 74 73 20 74 68 65 |ile rep|orts the|
|000018a0| 20 74 69 6d 69 6e 67 20 | 61 6e 64 20 61 63 63 75 | timing |and accu|
|000018b0| 72 61 63 79 20 6f 66 20 | 61 6c 6c 20 79 6f 75 72 |racy of |all your|
|000018c0| 20 76 69 64 65 6f 20 73 | 63 72 65 65 6e 73 2c 20 | video s|creens, |
|000018d0| 22 0d 09 09 22 61 73 20 | 6d 65 61 73 75 72 65 64 |"..."as |measured|
|000018e0| 20 62 79 20 54 69 6d 65 | 56 69 64 65 6f 2c 20 61 | by Time|Video, a|
|000018f0| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 6f 66 20 74 68 | compone|nt of th|
|00001900| 65 20 56 69 64 65 6f 54 | 6f 6f 6c 62 6f 78 2e 5c |e VideoT|oolbox.\|
|00001910| 6e 22 0d 09 09 22 5c 6e | 54 48 45 20 56 49 44 45 |n"..."\n|THE VIDE|
|00001920| 4f 20 54 4f 4f 4c 42 4f | 58 5c 6e 22 0d 09 09 22 |O TOOLBO|X\n"..."|
|00001930| 54 68 65 20 56 69 64 65 | 6f 54 6f 6f 6c 62 6f 78 |The Vide|oToolbox|
|00001940| 20 69 73 20 61 20 22 0d | 09 09 22 63 6f 6c 6c 65 | is a ".|.."colle|
|00001950| 63 74 69 6f 6e 20 6f 66 | 20 6e 65 61 72 6c 79 20 |ction of| nearly |
|00001960| 74 77 6f 20 68 75 6e 64 | 72 65 64 20 43 20 73 75 |two hund|red C su|
|00001970| 62 72 6f 75 74 69 6e 65 | 73 20 61 6e 64 20 73 65 |broutine|s and se|
|00001980| 76 65 72 61 6c 20 64 65 | 6d 6f 20 61 6e 64 20 75 |veral de|mo and u|
|00001990| 74 69 6c 69 74 79 20 22 | 0d 09 09 22 70 72 6f 67 |tility "|..."prog|
|000019a0| 72 61 6d 73 20 77 72 69 | 74 74 65 6e 20 74 6f 20 |rams wri|tten to |
|000019b0| 64 6f 20 76 69 73 75 61 | 6c 20 70 73 79 63 68 6f |do visua|l psycho|
|000019c0| 70 68 79 73 69 63 73 20 | 77 69 74 68 20 4d 61 63 |physics |with Mac|
|000019d0| 69 6e 74 6f 73 68 20 63 | 6f 6d 70 75 74 65 72 73 |intosh c|omputers|
|000019e0| 2e 20 49 74 27 73 20 66 | 72 65 65 20 22 0d 09 09 |. It's f|ree "...|
|000019f0| 22 61 6e 64 20 6d 61 79 | 20 6e 6f 74 20 62 65 20 |"and may| not be |
|00001a00| 73 6f 6c 64 20 77 69 74 | 68 6f 75 74 20 70 65 72 |sold wit|hout per|
|00001a10| 6d 69 73 73 69 6f 6e 2e | 20 49 74 20 73 68 6f 75 |mission.| It shou|
|00001a20| 6c 64 20 62 65 20 75 73 | 65 66 75 6c 20 74 6f 20 |ld be us|eful to |
|00001a30| 61 6e 79 6f 6e 65 20 77 | 68 6f 20 77 61 6e 74 73 |anyone w|ho wants|
|00001a40| 20 22 0d 09 09 22 74 6f | 20 70 72 65 73 65 6e 74 | "..."to| present|
|00001a50| 20 61 63 63 75 72 61 74 | 65 6c 79 20 73 70 65 63 | accurat|ely spec|
|00001a60| 69 66 69 65 64 20 76 69 | 73 75 61 6c 20 73 74 69 |ified vi|sual sti|
|00001a70| 6d 75 6c 69 20 6f 72 20 | 75 73 65 20 74 68 65 20 |muli or |use the |
|00001a80| 4d 61 63 20 66 6f 72 20 | 70 73 79 63 68 6f 6d 65 |Mac for |psychome|
|00001a90| 74 72 69 63 20 22 0d 09 | 09 22 65 78 70 65 72 69 |tric "..|."experi|
|00001aa0| 6d 65 6e 74 73 2e 20 54 | 68 65 20 74 65 78 74 20 |ments. T|he text |
|00001ab0| 66 69 6c 65 20 d2 56 69 | 64 65 6f 20 73 79 6e 63 |file .Vi|deo sync|
|00001ac0| 68 d3 20 64 69 73 63 75 | 73 73 65 73 20 61 6c 6c |h. discu|sses all|
|00001ad0| 20 74 68 65 20 77 61 79 | 73 20 6f 66 20 73 79 6e | the way|s of syn|
|00001ae0| 63 68 72 6f 6e 69 7a 69 | 6e 67 20 22 0d 09 09 22 |chronizi|ng "..."|
|00001af0| 70 72 6f 67 72 61 6d 73 | 20 74 6f 20 76 69 64 65 |programs| to vide|
|00001b00| 6f 20 64 69 73 70 6c 61 | 79 73 20 61 6e 64 20 74 |o displa|ys and t|
|00001b10| 68 65 20 6d 61 6e 79 20 | 70 69 74 66 61 6c 6c 73 |he many |pitfalls|
|00001b20| 20 74 6f 20 61 76 6f 69 | 64 2e 20 54 68 65 20 54 | to avoi|d. The T|
|00001b30| 69 6d 65 56 69 64 65 6f | 20 22 0d 09 09 22 61 70 |imeVideo| "..."ap|
|00001b40| 70 6c 69 63 61 74 69 6f | 6e 20 63 68 65 63 6b 73 |plicatio|n checks|
|00001b50| 20 6f 75 74 20 74 68 65 | 20 74 69 6d 69 6e 67 20 | out the| timing |
|00001b60| 6f 66 20 61 6c 6c 20 76 | 69 64 65 6f 20 64 65 76 |of all v|ideo dev|
|00001b70| 69 63 65 73 20 69 6e 20 | 61 6e 74 69 63 69 70 61 |ices in |anticipa|
|00001b80| 74 69 6f 6e 20 6f 66 20 | 74 68 65 69 72 20 22 0d |tion of |their ".|
|00001b90| 09 09 22 75 73 65 20 69 | 6e 20 63 72 69 74 69 63 |.."use i|n critic|
|00001ba0| 61 6c 20 72 65 61 6c 2d | 74 69 6d 65 20 61 70 70 |al real-|time app|
|00001bb0| 6c 69 63 61 74 69 6f 6e | 73 2c 20 65 2e 67 2e 20 |lication|s, e.g. |
|00001bc0| 6d 6f 76 69 65 73 20 6f | 72 20 6c 6f 6f 6b 75 70 |movies o|r lookup|
|00001bd0| 2d 74 61 62 6c 65 20 61 | 6e 69 6d 61 74 69 6f 6e |-table a|nimation|
|00001be0| 2e 20 22 0d 09 09 22 4c | 6f 77 2d 6c 65 76 65 6c |. "..."L|ow-level|
|00001bf0| 20 72 6f 75 74 69 6e 65 | 73 20 63 6f 6e 74 72 6f | routine|s contro|
|00001c00| 6c 20 76 69 64 65 6f 20 | 74 69 6d 69 6e 67 20 61 |l video |timing a|
|00001c10| 6e 64 20 6c 6f 6f 6b 75 | 70 20 74 61 62 6c 65 73 |nd looku|p tables|
|00001c20| 2c 20 64 69 73 70 6c 61 | 79 20 72 65 61 6c 2d 74 |, displa|y real-t|
|00001c30| 69 6d 65 20 22 0d 09 09 | 22 6d 6f 76 69 65 73 2c |ime "...|"movies,|
|00001c40| 20 61 6e 64 20 69 6d 70 | 6c 65 6d 65 6e 74 20 74 | and imp|lement t|
|00001c50| 68 65 20 6c 75 6d 69 6e | 61 6e 63 65 2d 63 6f 6e |he lumin|ance-con|
|00001c60| 74 72 6f 6c 20 61 6c 67 | 6f 72 69 74 68 6d 73 20 |trol alg|orithms |
|00001c70| 73 75 67 67 65 73 74 65 | 64 20 62 79 20 50 65 6c |suggeste|d by Pel|
|00001c80| 6c 69 20 61 6e 64 20 22 | 0d 09 09 22 5a 68 61 6e |li and "|..."Zhan|
|00001c90| 67 2e 20 28 44 2e 47 2e | 20 50 65 6c 6c 69 20 61 |g. (D.G.| Pelli a|
|00001ca0| 6e 64 20 4c 2e 20 5a 68 | 61 6e 67 2c 20 31 39 39 |nd L. Zh|ang, 199|
|00001cb0| 31 2c 20 41 63 63 75 72 | 61 74 65 20 63 6f 6e 74 |1, Accur|ate cont|
|00001cc0| 72 6f 6c 20 6f 66 20 63 | 6f 6e 74 72 61 73 74 20 |rol of c|ontrast |
|00001cd0| 6f 6e 20 22 0d 09 09 22 | 6d 69 63 72 6f 63 6f 6d |on "..."|microcom|
|00001ce0| 70 75 74 65 72 20 64 69 | 73 70 6c 61 79 73 2e 20 |puter di|splays. |
|00001cf0| 56 69 73 69 6f 6e 20 52 | 65 73 65 61 72 63 68 2c |Vision R|esearch,|
|00001d00| 20 33 31 2c 20 31 33 33 | 37 2d 31 33 35 30 2e 20 | 31, 133|7-1350. |
|00001d10| 52 65 70 72 69 6e 74 73 | 20 61 72 65 20 61 76 61 |Reprints| are ava|
|00001d20| 69 6c 61 62 6c 65 2e 29 | 20 22 0d 09 09 22 48 69 |ilable.)| "..."Hi|
|00001d30| 67 68 2d 6c 65 76 65 6c | 20 72 6f 75 74 69 6e 65 |gh-level| routine|
|00001d40| 73 20 68 65 6c 70 20 61 | 6e 61 6c 79 7a 65 20 70 |s help a|nalyze p|
|00001d50| 73 79 63 68 6f 70 68 79 | 73 69 63 61 6c 20 65 78 |sychophy|sical ex|
|00001d60| 70 65 72 69 6d 65 6e 74 | 73 20 28 65 2e 67 2e 20 |periment|s (e.g. |
|00001d70| 67 72 61 70 68 69 6e 67 | 20 6f 72 20 22 0d 09 09 |graphing| or "...|
|00001d80| 22 6d 61 78 69 6d 75 6d | 2d 6c 69 6b 65 6c 69 68 |"maximum|-likelih|
|00001d90| 6f 6f 64 20 66 69 74 74 | 69 6e 67 20 6f 66 20 70 |ood fitt|ing of p|
|00001da0| 73 79 63 68 6f 6d 65 74 | 72 69 63 20 64 61 74 61 |sychomet|ric data|
|00001db0| 29 2e 20 54 68 69 73 20 | 63 6f 6c 6c 65 63 74 69 |). This |collecti|
|00001dc0| 6f 6e 20 68 61 73 20 62 | 65 65 6e 20 22 0d 09 09 |on has b|een "...|
|00001dd0| 22 63 6f 6e 74 69 6e 75 | 61 6c 6c 79 20 75 70 64 |"continu|ally upd|
|00001de0| 61 74 65 64 20 73 69 6e | 63 65 20 31 39 39 31 2e |ated sin|ce 1991.|
|00001df0| 20 4d 61 6e 79 20 63 6f | 6c 6c 65 61 67 75 65 73 | Many co|lleagues|
|00001e00| 20 68 61 76 65 20 69 6e | 64 69 63 61 74 65 64 20 | have in|dicated |
|00001e10| 74 68 61 74 20 74 68 65 | 79 20 61 72 65 20 22 0d |that the|y are ".|
|00001e20| 09 09 22 75 73 69 6e 67 | 20 74 68 65 20 73 6f 66 |.."using| the sof|
|00001e30| 74 77 61 72 65 20 69 6e | 20 74 68 65 69 72 20 6c |tware in| their l|
|00001e40| 61 62 73 2e 20 4d 6f 73 | 74 20 6f 66 20 74 68 65 |abs. Mos|t of the|
|00001e50| 20 72 6f 75 74 69 6e 65 | 73 20 61 72 65 20 4d 61 | routine|s are Ma|
|00001e60| 63 2d 73 70 65 63 69 66 | 69 63 2c 20 62 75 74 20 |c-specif|ic, but |
|00001e70| 22 0d 09 09 22 73 6f 6d | 65 20 76 65 72 79 20 75 |"..."som|e very u|
|00001e80| 73 65 66 75 6c 20 72 6f | 75 74 69 6e 65 73 2c 20 |seful ro|utines, |
|00001e90| 65 2e 67 2e 20 74 68 65 | 20 6c 75 6d 69 6e 61 6e |e.g. the| luminan|
|00001ea0| 63 65 2d 63 6f 6e 74 72 | 6f 6c 2c 20 73 74 61 74 |ce-contr|ol, stat|
|00001eb0| 69 73 74 69 63 73 2c 20 | 61 6e 64 20 22 0d 09 09 |istics, |and "...|
|00001ec0| 22 6d 61 78 69 6d 75 6d | 2d 6c 69 6b 65 6c 69 68 |"maximum|-likelih|
|00001ed0| 6f 6f 64 20 66 69 74 74 | 69 6e 67 20 61 6c 67 6f |ood fitt|ing algo|
|00001ee0| 72 69 74 68 6d 73 2c 20 | 63 6f 75 6c 64 20 65 61 |rithms, |could ea|
|00001ef0| 73 69 6c 79 20 62 65 20 | 70 6f 72 74 65 64 20 74 |sily be |ported t|
|00001f00| 6f 20 6f 74 68 65 72 20 | 22 0d 09 09 22 63 6f 6d |o other |"..."com|
|00001f10| 70 75 74 65 72 73 2e 20 | 54 6f 20 67 65 74 20 74 |puters. |To get t|
|00001f20| 68 65 20 6c 61 74 65 73 | 74 20 76 65 72 73 69 6f |he lates|t versio|
|00001f30| 6e 20 6f 66 20 74 68 65 | 20 56 69 64 65 6f 54 6f |n of the| VideoTo|
|00001f40| 6f 6c 62 6f 78 2c 20 6a | 75 73 74 20 73 65 6e 64 |olbox, j|ust send|
|00001f50| 20 6d 65 20 79 6f 75 72 | 20 22 0d 09 09 22 6d 61 | me your| "..."ma|
|00001f60| 69 6c 69 6e 67 20 61 64 | 64 72 65 73 73 2c 20 61 |iling ad|dress, a|
|00001f70| 6e 64 20 49 d5 6c 6c 20 | 6d 61 69 6c 20 79 6f 75 |nd I.ll |mail you|
|00001f80| 20 61 20 64 69 73 6b 2e | 20 4f 72 20 64 6f 77 6e | a disk.| Or down|
|00001f90| 6c 6f 61 64 20 d2 56 69 | 64 65 6f 54 6f 6f 6c 62 |load .Vi|deoToolb|
|00001fa0| 6f 78 2e 73 65 61 d3 20 | 28 61 20 22 0d 09 09 22 |ox.sea. |(a "..."|
|00001fb0| 73 65 6c 66 2d 65 78 74 | 72 61 63 74 69 6e 67 20 |self-ext|racting |
|00001fc0| 61 72 63 68 69 76 65 29 | 20 65 6c 65 63 74 72 6f |archive)| electro|
|00001fd0| 6e 69 63 61 6c 6c 79 20 | 66 72 6f 6d 20 74 68 65 |nically |from the|
|00001fe0| 20 49 6e 66 6f 2d 4d 61 | 63 20 6f 72 20 4d 61 63 | Info-Ma|c or Mac|
|00001ff0| 50 73 79 63 68 20 61 72 | 63 68 69 76 65 73 2e 20 |Psych ar|chives. |
|00002000| 22 0d 09 09 22 54 68 65 | 20 66 74 70 20 73 65 72 |"..."The| ftp ser|
|00002010| 76 65 72 73 20 61 72 65 | 20 63 61 6c 6c 65 64 20 |vers are| called |
|00002020| 73 75 6d 65 78 2d 61 69 | 6d 2e 73 74 61 6e 66 6f |sumex-ai|m.stanfo|
|00002030| 72 64 2e 65 64 75 20 5b | 33 36 2e 34 34 2e 30 2e |rd.edu [|36.44.0.|
|00002040| 36 5d 20 28 6c 6f 6f 6b | 20 69 6e 20 22 0d 09 09 |6] (look| in "...|
|00002050| 22 69 6e 66 6f 2d 6d 61 | 63 2f 73 6f 75 72 63 65 |"info-ma|c/source|
|00002060| 2f 63 29 20 61 6e 64 20 | 66 74 70 2e 73 74 6f 6c |/c) and |ftp.stol|
|00002070| 61 66 2e 65 64 75 20 5b | 31 33 30 2e 37 31 2e 31 |af.edu [|130.71.1|
|00002080| 32 38 2e 39 5d 20 28 6c | 6f 6f 6b 20 69 6e 20 74 |28.9] (l|ook in t|
|00002090| 68 65 20 70 75 62 2f 6d | 61 63 70 73 79 63 68 20 |he pub/m|acpsych |
|000020a0| 22 0d 09 09 22 64 69 72 | 65 63 74 6f 72 79 29 2e |"..."dir|ectory).|
|000020b0| 20 4c 6f 67 20 69 6e 20 | 61 73 20 d2 61 6e 6f 6e | Log in |as .anon|
|000020c0| 79 6d 6f 75 73 d3 3b 20 | 61 6e 79 20 70 61 73 73 |ymous.; |any pass|
|000020d0| 77 6f 72 64 20 77 69 6c | 6c 20 64 6f 2e 5c 6e 22 |word wil|l do.\n"|
|000020e0| 2c 38 30 29 29 3b 0d 09 | 66 70 72 69 6e 74 66 28 |,80));..|fprintf(|
|000020f0| 64 61 74 61 46 69 6c 65 | 2c 0d 09 09 22 44 65 6e |dataFile|,..."Den|
|00002100| 69 73 20 50 65 6c 6c 69 | 2c 20 50 72 6f 66 65 73 |is Pelli|, Profes|
|00002110| 73 6f 72 20 6f 66 20 4e | 65 75 72 6f 73 63 69 65 |sor of N|euroscie|
|00002120| 6e 63 65 5c 6e 22 0d 09 | 09 22 49 6e 73 74 69 74 |nce\n"..|."Instit|
|00002130| 75 74 65 20 66 6f 72 20 | 53 65 6e 73 6f 72 79 20 |ute for |Sensory |
|00002140| 52 65 73 65 61 72 63 68 | 2c 20 53 79 72 61 63 75 |Research|, Syracu|
|00002150| 73 65 20 55 6e 69 76 65 | 72 73 69 74 79 2c 20 53 |se Unive|rsity, S|
|00002160| 79 72 61 63 75 73 65 2c | 20 4e 59 20 31 33 32 34 |yracuse,| NY 1324|
|00002170| 34 2d 35 32 39 30 2c 20 | 55 53 41 5c 6e 22 0d 09 |4-5290, |USA\n"..|
|00002180| 09 22 64 65 6e 69 73 5f | 70 65 6c 6c 69 40 69 73 |."denis_|pelli@is|
|00002190| 72 2e 73 79 72 2e 65 64 | 75 5c 6e 22 29 3b 0d 09 |r.syr.ed|u\n");..|
|000021a0| 66 70 72 69 6e 74 66 28 | 64 61 74 61 46 69 6c 65 |fprintf(|dataFile|
|000021b0| 2c 42 72 65 61 6b 4c 69 | 6e 65 73 28 0d 09 09 22 |,BreakLi|nes(..."|
|000021c0| 5c 6e 54 49 4d 45 20 56 | 49 44 45 4f 5c 6e 22 0d |\nTIME V|IDEO\n".|
|000021d0| 09 09 22 46 6f 72 20 65 | 61 63 68 20 76 69 64 65 |.."For e|ach vide|
|000021e0| 6f 20 63 61 72 64 2c 20 | 54 69 6d 65 56 69 64 65 |o card, |TimeVide|
|000021f0| 6f 20 6d 65 61 73 75 72 | 65 73 20 74 68 65 20 76 |o measur|es the v|
|00002200| 69 64 65 6f 20 66 72 61 | 6d 65 20 72 61 74 65 2c |ideo fra|me rate,|
|00002210| 20 66 72 65 71 75 65 6e | 63 79 20 6f 66 20 56 42 | frequen|cy of VB|
|00002220| 4c 20 22 0d 09 09 22 69 | 6e 74 65 72 72 75 70 74 |L "..."i|nterrupt|
|00002230| 73 20 28 73 75 70 70 6f | 73 65 64 20 74 6f 20 62 |s (suppo|sed to b|
|00002240| 65 20 6f 6e 65 20 70 65 | 72 20 66 72 61 6d 65 29 |e one pe|r frame)|
|00002250| 2c 20 68 6f 77 20 6c 6f | 6e 67 20 69 74 20 74 61 |, how lo|ng it ta|
|00002260| 6b 65 73 20 74 6f 20 6c | 6f 61 64 20 74 68 65 20 |kes to l|oad the |
|00002270| 63 6c 75 74 2c 20 22 0d | 09 09 22 61 6e 64 20 68 |clut, ".|.."and h|
|00002280| 6f 77 20 6d 75 63 68 20 | 6f 66 20 74 68 65 20 73 |ow much |of the s|
|00002290| 63 72 65 65 6e 20 79 6f | 75 20 63 61 6e 20 66 69 |creen yo|u can fi|
|000022a0| 6c 6c 20 77 69 74 68 20 | 61 20 72 65 61 6c 2d 74 |ll with |a real-t|
|000022b0| 69 6d 65 20 6f 6e 65 2d | 69 6d 61 67 65 2d 70 65 |ime one-|image-pe|
|000022c0| 72 2d 66 72 61 6d 65 20 | 22 0d 09 09 22 6d 6f 76 |r-frame |"..."mov|
|000022d0| 69 65 20 73 68 6f 77 6e | 20 62 79 20 43 6f 70 79 |ie shown| by Copy|
|000022e0| 42 69 74 73 28 29 20 6f | 72 20 43 6f 70 79 42 69 |Bits() o|r CopyBi|
|000022f0| 74 73 51 75 69 63 6b 6c | 79 28 29 2e 20 49 74 20 |tsQuickl|y(). It |
|00002300| 74 68 65 6e 20 70 65 72 | 66 6f 72 6d 73 20 61 20 |then per|forms a |
|00002310| 72 61 6e 64 6f 6d 20 22 | 0d 09 09 22 77 72 69 74 |random "|..."writ|
|00002320| 65 2d 74 68 65 6e 2d 72 | 65 61 64 20 74 65 73 74 |e-then-r|ead test|
|00002330| 20 6f 66 20 74 68 65 20 | 43 6f 6c 6f 72 20 4c 6f | of the |Color Lo|
|00002340| 6f 6b 75 70 20 54 61 62 | 6c 65 20 28 63 6c 75 74 |okup Tab|le (clut|
|00002350| 29 2e 20 54 68 69 73 20 | 74 65 73 74 73 20 74 68 |). This |tests th|
|00002360| 65 20 63 6c 75 74 20 22 | 0d 09 09 22 6d 65 6d 6f |e clut "|..."memo|
|00002370| 72 79 20 68 61 72 64 77 | 61 72 65 20 61 6e 64 20 |ry hardw|are and |
|00002380| 74 68 65 20 73 6f 66 74 | 77 61 72 65 20 75 73 65 |the soft|ware use|
|00002390| 64 20 74 6f 20 77 72 69 | 74 65 20 61 6e 64 20 72 |d to wri|te and r|
|000023a0| 65 61 64 20 74 68 65 20 | 63 6c 75 74 2e 20 57 65 |ead the |clut. We|
|000023b0| 20 74 65 73 74 20 22 0d | 09 09 22 77 72 69 74 69 | test ".|.."writi|
|000023c0| 6e 67 20 62 79 20 47 44 | 53 65 74 45 6e 74 72 69 |ng by GD|SetEntri|
|000023d0| 65 73 28 29 2c 20 77 68 | 69 63 68 20 70 61 73 73 |es(), wh|ich pass|
|000023e0| 65 73 20 74 68 65 20 72 | 65 71 75 65 73 74 20 6f |es the r|equest o|
|000023f0| 6e 20 74 6f 20 74 68 65 | 20 76 69 64 65 6f 20 64 |n to the| video d|
|00002400| 72 69 76 65 72 2c 20 61 | 6e 64 20 22 0d 09 09 22 |river, a|nd "..."|
|00002410| 77 65 20 61 6c 73 6f 20 | 74 65 73 74 20 77 72 69 |we also |test wri|
|00002420| 74 69 6e 67 20 62 79 20 | 53 65 74 45 6e 74 72 69 |ting by |SetEntri|
|00002430| 65 73 51 75 69 63 6b 6c | 79 28 29 2c 20 77 68 69 |esQuickl|y(), whi|
|00002440| 63 68 20 61 63 63 65 73 | 73 65 73 20 74 68 65 20 |ch acces|ses the |
|00002450| 68 61 72 64 77 61 72 65 | 20 22 0d 09 09 22 64 69 |hardware| "..."di|
|00002460| 72 65 63 74 6c 79 2e 20 | 49 6e 20 65 69 74 68 65 |rectly. |In eithe|
|00002470| 72 20 63 61 73 65 2c 20 | 74 68 65 20 63 6c 75 74 |r case, |the clut|
|00002480| 20 69 73 20 72 65 61 64 | 20 62 79 20 47 44 47 65 | is read| by GDGe|
|00002490| 74 45 6e 74 72 69 65 73 | 28 29 2c 20 77 68 69 63 |tEntries|(), whic|
|000024a0| 68 20 70 61 73 73 65 73 | 20 74 68 65 20 22 0d 09 |h passes| the "..|
|000024b0| 09 22 72 65 71 75 65 73 | 74 20 6f 6e 20 74 6f 20 |."reques|t on to |
|000024c0| 74 68 65 20 76 69 64 65 | 6f 20 64 72 69 76 65 72 |the vide|o driver|
|000024d0| 2e 20 54 68 65 20 74 65 | 73 74 69 6e 67 20 69 73 |. The te|sting is|
|000024e0| 20 74 68 6f 72 6f 75 67 | 68 3b 20 6d 61 6e 79 20 | thoroug|h; many |
|000024f0| 76 69 64 65 6f 20 64 65 | 76 69 63 65 73 20 66 61 |video de|vices fa|
|00002500| 69 6c 20 22 0d 09 09 22 | 61 74 20 6c 65 61 73 74 |il "..."|at least|
|00002510| 20 70 61 72 74 20 6f 66 | 20 74 68 65 20 74 65 73 | part of| the tes|
|00002520| 74 2e 20 41 6c 6c 20 74 | 68 65 20 64 72 69 76 65 |t. All t|he drive|
|00002530| 72 20 65 72 72 6f 72 73 | 20 75 6e 63 6f 76 65 72 |r errors| uncover|
|00002540| 65 64 20 74 6f 20 64 61 | 74 65 20 61 70 70 65 61 |ed to da|te appea|
|00002550| 72 20 69 6e 20 74 68 65 | 20 22 0d 09 09 22 56 69 |r in the| "..."Vi|
|00002560| 64 65 6f 54 6f 6f 6c 62 | 6f 78 20 d2 56 69 64 65 |deoToolb|ox .Vide|
|00002570| 6f 20 73 79 6e 63 68 d3 | 20 74 65 78 74 20 66 69 |o synch.| text fi|
|00002580| 6c 65 2e 20 41 64 64 20 | 79 6f 75 72 20 72 65 73 |le. Add |your res|
|00002590| 75 6c 74 73 20 62 79 20 | 65 6d 61 69 6c 69 6e 67 |ults by |emailing|
|000025a0| 20 74 68 69 73 20 66 69 | 6c 65 20 74 6f 20 22 0d | this fi|le to ".|
|000025b0| 09 09 22 64 65 6e 69 73 | 5f 70 65 6c 6c 69 40 69 |.."denis|_pelli@i|
|000025c0| 73 72 2e 73 79 72 2e 65 | 64 75 5c 6e 22 0d 09 09 |sr.syr.e|du\n"...|
|000025d0| 22 5c 6e 47 4c 4f 53 53 | 41 52 59 5c 6e 22 0d 09 |"\nGLOSS|ARY\n"..|
|000025e0| 09 22 41 20 76 69 64 65 | 6f 20 66 72 61 6d 65 20 |."A vide|o frame |
|000025f0| 69 73 20 61 20 72 65 66 | 72 65 73 68 20 6f 66 20 |is a ref|resh of |
|00002600| 79 6f 75 72 20 76 69 64 | 65 6f 20 73 63 72 65 65 |your vid|eo scree|
|00002610| 6e 2e 20 54 6f 20 73 68 | 6f 77 20 61 20 6d 6f 76 |n. To sh|ow a mov|
|00002620| 69 65 2c 20 79 6f 75 20 | 77 69 6c 6c 20 77 61 6e |ie, you |will wan|
|00002630| 74 20 22 0d 09 09 22 74 | 6f 20 72 65 6c 6f 61 64 |t "..."t|o reload|
|00002640| 20 74 68 65 20 69 6d 61 | 67 65 20 6f 6e 63 65 20 | the ima|ge once |
|00002650| 70 65 72 20 66 72 61 6d | 65 3b 20 74 68 65 20 74 |per fram|e; the t|
|00002660| 61 62 6c 65 20 73 68 6f | 77 73 20 68 6f 77 20 62 |able sho|ws how b|
|00002670| 69 67 20 74 68 61 74 20 | 69 6d 61 67 65 20 63 61 |ig that |image ca|
|00002680| 6e 20 62 65 2c 20 22 0d | 09 09 22 61 73 20 61 20 |n be, ".|.."as a |
|00002690| 66 72 61 63 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |fraction| of the |
|000026a0| 73 63 72 65 65 6e 20 61 | 72 65 61 2c 20 61 6e 64 |screen a|rea, and|
|000026b0| 20 73 74 69 6c 6c 20 62 | 65 20 72 65 6c 6f 61 64 | still b|e reload|
|000026c0| 65 64 20 6f 6e 63 65 20 | 70 65 72 20 66 72 61 6d |ed once |per fram|
|000026d0| 65 2e 20 22 0d 09 09 22 | 28 53 6f 6d 65 20 76 69 |e. "..."|(Some vi|
|000026e0| 64 65 6f 20 63 61 72 64 | 73 20 68 61 76 65 20 6d |deo card|s have m|
|000026f0| 75 6c 74 69 70 6c 65 20 | 76 69 64 65 6f 20 d2 70 |ultiple |video .p|
|00002700| 61 67 65 73 d3 20 74 68 | 61 74 20 63 61 6e 20 62 |ages. th|at can b|
|00002710| 65 20 73 77 69 74 63 68 | 65 64 20 62 79 20 22 0d |e switch|ed by ".|
|00002720| 09 09 22 63 61 6c 6c 69 | 6e 67 20 47 44 53 65 74 |.."calli|ng GDSet|
|00002730| 4d 6f 64 65 28 29 2c 20 | 74 68 6f 75 67 68 20 49 |Mode(), |though I|
|00002740| 27 76 65 20 6e 65 76 65 | 72 20 74 72 69 65 64 20 |'ve neve|r tried |
|00002750| 69 74 2e 29 20 41 20 d2 | 56 42 4c d3 20 22 0d 09 |it.) A .|VBL. "..|
|00002760| 09 22 69 6e 74 65 72 72 | 75 70 74 20 69 73 20 70 |."interr|upt is p|
|00002770| 72 6f 64 75 63 65 64 20 | 62 79 20 79 6f 75 72 20 |roduced |by your |
|00002780| 76 69 64 65 6f 20 63 61 | 72 64 20 64 72 69 76 65 |video ca|rd drive|
|00002790| 72 2c 20 6e 6f 6d 69 6e | 61 6c 6c 79 20 6f 6e 63 |r, nomin|ally onc|
|000027a0| 65 20 70 65 72 20 66 72 | 61 6d 65 2c 20 62 75 74 |e per fr|ame, but|
|000027b0| 20 22 0d 09 09 22 73 6f | 6d 65 20 76 69 64 65 6f | "..."so|me video|
|000027c0| 20 64 72 69 76 65 72 73 | 20 70 72 6f 64 75 63 65 | drivers| produce|
|000027d0| 20 6d 6f 72 65 2c 20 77 | 68 69 63 68 20 69 73 20 | more, w|hich is |
|000027e0| 70 6f 6f 72 2c 20 62 75 | 74 20 6e 6f 74 20 73 65 |poor, bu|t not se|
|000027f0| 72 69 6f 75 73 2e 20 28 | 54 68 65 20 22 0d 09 09 |rious. (|The "...|
|00002800| 22 56 42 4c 49 6e 73 74 | 61 6c 6c 2e 63 20 70 72 |"VBLInst|all.c pr|
|00002810| 6f 67 72 61 6d 20 77 69 | 6c 6c 20 64 65 61 6c 20 |ogram wi|ll deal |
|00002820| 77 69 74 68 20 69 74 2e | 29 20 53 75 70 70 72 65 |with it.|) Suppre|
|00002830| 73 73 65 64 20 69 6e 74 | 65 72 72 75 70 74 73 20 |ssed int|errupts |
|00002840| 64 75 72 69 6e 67 20 63 | 6c 75 74 20 22 0d 09 09 |during c|lut "...|
|00002850| 22 75 70 64 61 74 65 73 | 20 61 72 65 20 62 61 64 |"updates| are bad|
|00002860| 2e 20 49 74 20 6d 65 61 | 6e 73 20 74 68 61 74 20 |. It mea|ns that |
|00002870| 74 68 65 20 64 72 69 76 | 65 72 20 64 69 73 61 62 |the driv|er disab|
|00002880| 6c 65 73 20 74 68 65 20 | 56 42 4c 20 69 6e 74 65 |les the |VBL inte|
|00002890| 72 72 75 70 74 20 66 6f | 72 20 74 6f 6f 20 22 0d |rrupt fo|r too ".|
|000028a0| 09 09 22 6c 6f 6e 67 20 | 77 68 69 6c 65 20 69 74 |.."long |while it|
|000028b0| d5 73 20 6c 6f 61 64 69 | 6e 67 20 74 68 65 20 63 |.s loadi|ng the c|
|000028c0| 6c 75 74 2e 20 54 68 69 | 73 20 77 69 6c 6c 20 74 |lut. Thi|s will t|
|000028d0| 68 72 6f 77 20 6f 66 66 | 20 61 6e 79 20 69 6e 74 |hrow off| any int|
|000028e0| 65 72 72 75 70 74 2d 62 | 61 73 65 64 20 22 0d 09 |errupt-b|ased "..|
|000028f0| 09 22 61 74 74 65 6d 70 | 74 20 74 6f 20 63 6f 75 |."attemp|t to cou|
|00002900| 6e 74 20 66 72 61 6d 65 | 73 2e 20 54 68 65 20 63 |nt frame|s. The c|
|00002910| 6c 75 74 20 69 73 20 74 | 68 65 20 63 6f 6c 6f 72 |lut is t|he color|
|00002920| 20 6c 6f 6f 6b 75 70 20 | 74 61 62 6c 65 20 6f 66 | lookup |table of|
|00002930| 20 79 6f 75 72 20 76 69 | 64 65 6f 20 63 61 72 64 | your vi|deo card|
|00002940| 2e 20 22 0d 09 09 22 4c | 6f 6f 6b 75 70 20 74 61 |. "..."L|ookup ta|
|00002950| 62 6c 65 20 61 6e 69 6d | 61 74 69 6f 6e 2c 20 65 |ble anim|ation, e|
|00002960| 2e 67 2e 20 66 6f 72 20 | 74 65 6d 70 6f 72 61 6c |.g. for |temporal|
|00002970| 20 6d 6f 64 75 6c 61 74 | 69 6f 6e 20 6f 66 20 63 | modulat|ion of c|
|00002980| 6f 6e 74 72 61 73 74 2c | 20 72 65 71 75 69 72 65 |ontrast,| require|
|00002990| 73 20 74 68 61 74 20 22 | 0d 09 09 22 79 6f 75 20 |s that "|..."you |
|000029a0| 72 65 6c 6f 61 64 20 74 | 68 65 20 63 6c 75 74 20 |reload t|he clut |
|000029b0| 6f 6e 63 65 20 70 65 72 | 20 66 72 61 6d 65 2c 20 |once per| frame, |
|000029c0| 73 6f 20 69 74 d5 73 20 | 76 65 72 79 20 69 6d 70 |so it.s |very imp|
|000029d0| 6f 72 74 61 6e 74 20 74 | 68 61 74 20 74 68 69 73 |ortant t|hat this|
|000029e0| 20 62 65 20 66 61 73 74 | 20 22 0d 09 09 22 65 6e | be fast| "..."en|
|000029f0| 6f 75 67 68 2e 20 22 0d | 09 09 22 54 68 65 20 66 |ough. ".|.."The f|
|00002a00| 69 72 73 74 20 63 61 6c | 6c 20 74 6f 20 53 65 74 |irst cal|l to Set|
|00002a10| 45 6e 74 72 69 65 73 51 | 75 69 63 6b 6c 79 28 29 |EntriesQ|uickly()|
|00002a20| 20 66 6f 72 20 65 61 63 | 68 20 64 65 76 69 63 65 | for eac|h device|
|00002a30| 20 69 73 20 73 6c 6f 77 | 2d 2d 61 20 63 61 63 68 | is slow|--a cach|
|00002a40| 65 20 69 73 20 22 0d 09 | 09 22 66 69 6c 6c 65 64 |e is "..|."filled|
|00002a50| 3b 20 74 68 65 20 72 65 | 70 6f 72 74 65 64 20 74 |; the re|ported t|
|00002a60| 69 6d 65 73 20 61 72 65 | 20 66 6f 72 20 73 75 62 |imes are| for sub|
|00002a70| 73 65 71 75 65 6e 74 20 | 63 61 6c 6c 73 2e 20 22 |sequent |calls. "|
|00002a80| 0d 09 09 22 45 61 63 68 | 20 76 69 64 65 6f 20 63 |..."Each| video c|
|00002a90| 61 72 64 20 63 61 6e 20 | 62 65 20 69 6e 20 d2 43 |ard can |be in .C|
|00002aa0| 6f 6c 6f 72 d3 20 6f 72 | 20 d2 47 72 61 79 d3 20 |olor. or| .Gray. |
|00002ab0| 6d 6f 64 65 2c 20 61 73 | 20 73 65 74 20 62 79 20 |mode, as| set by |
|00002ac0| 74 68 65 20 43 6f 6e 74 | 72 6f 6c 20 22 0d 09 09 |the Cont|rol "...|
|00002ad0| 22 50 61 6e 65 6c 3a 4d | 6f 6e 69 74 6f 72 73 2c |"Panel:M|onitors,|
|00002ae0| 20 74 68 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 54 | the Mac|intosh T|
|00002af0| 6f 6f 6c 62 6f 78 20 63 | 61 6c 6c 20 53 65 74 44 |oolbox c|all SetD|
|00002b00| 65 70 74 68 2c 20 6f 72 | 20 74 68 65 20 56 69 64 |epth, or| the Vid|
|00002b10| 65 6f 54 6f 6f 6c 62 6f | 78 20 63 61 6c 6c 20 22 |eoToolbo|x call "|
|00002b20| 0d 09 09 22 47 44 53 65 | 74 47 72 61 79 2e 20 49 |..."GDSe|tGray. I|
|00002b30| 6e 20 d2 47 72 61 79 d3 | 20 6d 6f 64 65 20 61 6c |n .Gray.| mode al|
|00002b40| 6c 20 63 6f 6c 6f 72 73 | 20 61 72 65 20 74 72 61 |l colors| are tra|
|00002b50| 6e 73 66 6f 72 6d 65 64 | 20 74 6f 20 6c 75 6d 69 |nsformed| to lumi|
|00002b60| 6e 61 6e 63 65 2d 65 71 | 75 69 76 61 6c 65 6e 74 |nance-eq|uivalent|
|00002b70| 20 22 0d 09 09 22 67 72 | 61 79 73 2e 20 54 68 65 | "..."gr|ays. The|
|00002b80| 20 63 6c 75 74 20 74 65 | 73 74 73 20 74 72 79 20 | clut te|sts try |
|00002b90| 6c 6f 61 64 69 6e 67 20 | 74 68 65 20 63 6c 75 74 |loading |the clut|
|00002ba0| 20 73 65 72 69 61 6c 6c | 79 2c 20 6f 6e 65 20 65 | seriall|y, one e|
|00002bb0| 6e 74 72 79 20 61 74 20 | 61 20 74 69 6d 65 2c 20 |ntry at |a time, |
|00002bc0| 61 6e 64 20 22 0d 09 09 | 22 61 6c 6c 20 61 74 20 |and "...|"all at |
|00002bd0| 6f 6e 63 65 3b 20 73 6f | 6d 65 20 76 69 64 65 6f |once; so|me video|
|00002be0| 20 64 72 69 76 65 72 73 | 20 66 61 69 6c 20 74 68 | drivers| fail th|
|00002bf0| 65 20 73 65 72 69 61 6c | 20 74 65 73 74 20 62 65 |e serial| test be|
|00002c00| 63 61 75 73 65 20 74 68 | 65 79 20 64 6f 6e d5 74 |cause th|ey don.t|
|00002c10| 20 63 6f 70 65 20 22 0d | 09 09 22 77 65 6c 6c 20 | cope ".|.."well |
|00002c20| 77 69 74 68 20 61 20 6e | 6f 6e 7a 65 72 6f 20 d2 |with a n|onzero .|
|00002c30| 73 74 61 72 74 d3 20 76 | 61 6c 75 65 20 66 6f 72 |start. v|alue for|
|00002c40| 20 74 68 65 20 65 6e 74 | 72 79 20 69 6e 64 65 78 | the ent|ry index|
|00002c50| 2e 20 46 6f 72 20 6d 6f | 72 65 20 65 78 70 6c 61 |. For mo|re expla|
|00002c60| 6e 61 74 69 6f 6e 20 73 | 65 65 20 22 0d 09 09 22 |nation s|ee "..."|
|00002c70| 74 68 65 20 74 65 78 74 | 20 66 69 6c 65 20 63 61 |the text| file ca|
|00002c80| 6c 6c 65 64 20 d2 56 69 | 64 65 6f 20 73 79 6e 63 |lled .Vi|deo sync|
|00002c90| 68 d3 20 6f 6e 20 74 68 | 65 20 56 69 64 65 6f 54 |h. on th|e VideoT|
|00002ca0| 6f 6f 6c 62 6f 78 20 64 | 69 73 6b 2e 5c 6e 22 0d |oolbox d|isk.\n".|
|00002cb0| 09 09 22 5c 6e 22 0d 09 | 09 22 d2 6f 6b d3 3d 20 |.."\n"..|.".ok.= |
|00002cc0| 74 68 65 20 63 6c 75 74 | 20 70 61 73 73 65 64 20 |the clut| passed |
|00002cd0| 61 6c 6c 20 74 65 73 74 | 73 2e 5c 6e 22 0d 09 09 |all test|s.\n"...|
|00002ce0| 22 d2 21 67 72 61 79 d3 | 3d 20 74 68 65 20 63 6c |".!gray.|= the cl|
|00002cf0| 75 74 20 77 61 73 20 6e | 6f 6d 69 6e 61 6c 6c 79 |ut was n|ominally|
|00002d00| 20 69 6e 20 67 72 61 79 | 20 6d 6f 64 65 2c 20 62 | in gray| mode, b|
|00002d10| 75 74 20 6f 6e 6c 79 20 | 70 61 73 73 65 64 20 74 |ut only |passed t|
|00002d20| 68 65 20 63 6f 6c 6f 72 | 20 74 65 73 74 2e 5c 6e |he color| test.\n|
|00002d30| 22 0d 09 09 22 d2 21 63 | 6f 6c 6f 72 d3 3d 20 74 |"...".!c|olor.= t|
|00002d40| 68 65 20 63 6c 75 74 20 | 77 61 73 20 6e 6f 6d 69 |he clut |was nomi|
|00002d50| 6e 61 6c 6c 79 20 69 6e | 20 63 6f 6c 6f 72 20 6d |nally in| color m|
|00002d60| 6f 64 65 2c 20 62 75 74 | 20 6f 6e 6c 79 20 70 61 |ode, but| only pa|
|00002d70| 73 73 65 64 20 74 68 65 | 20 67 72 61 79 20 74 65 |ssed the| gray te|
|00002d80| 73 74 2e 5c 6e 22 0d 09 | 09 22 d2 21 73 65 72 69 |st.\n"..|.".!seri|
|00002d90| 61 6c d3 3d 20 63 6c 75 | 74 20 70 61 73 73 65 64 |al.= clu|t passed|
|00002da0| 20 77 68 65 6e 20 6c 6f | 61 64 65 64 20 61 6c 6c | when lo|aded all|
|00002db0| 20 61 74 20 6f 6e 63 65 | 2c 20 62 75 74 20 66 61 | at once|, but fa|
|00002dc0| 69 6c 65 64 20 77 68 65 | 6e 20 6c 6f 61 64 65 64 |iled whe|n loaded|
|00002dd0| 20 73 65 72 69 61 6c 6c | 79 2e 5c 6e 22 0d 09 09 | seriall|y.\n"...|
|00002de0| 22 d2 62 61 64 d3 3d 20 | 74 68 65 20 63 6c 75 74 |".bad.= |the clut|
|00002df0| 20 70 72 6f 64 75 63 65 | 64 20 73 6f 6d 65 20 6f | produce|d some o|
|00002e00| 74 68 65 72 20 70 61 74 | 74 65 72 6e 20 6f 66 20 |ther pat|tern of |
|00002e10| 65 72 72 6f 72 73 2c 20 | 72 65 70 6f 72 74 65 64 |errors, |reported|
|00002e20| 20 65 78 70 6c 69 63 69 | 74 6c 79 2e 5c 6e 22 0d | explici|tly.\n".|
|00002e30| 09 09 22 53 65 74 45 6e | 74 72 69 65 73 51 75 69 |.."SetEn|triesQui|
|00002e40| 63 6b 6c 79 3a 20 d2 21 | 67 72 61 79 d3 20 69 73 |ckly: .!|gray. is|
|00002e50| 20 6f 6b 2c 20 61 6e 64 | 20 d2 21 73 65 72 69 61 | ok, and| .!seria|
|00002e60| 6c d3 20 69 73 20 6f 6b | 20 6f 6e 20 74 68 65 20 |l. is ok| on the |
|00002e70| 51 75 61 64 72 61 2e 5c | 6e 22 0d 09 09 22 5c 6e |Quadra.\|n"..."\n|
|00002e80| 54 68 69 73 20 69 73 20 | 61 20 54 65 61 63 68 54 |This is |a TeachT|
|00002e90| 65 78 74 20 66 69 6c 65 | 2c 20 22 0d 09 09 22 62 |ext file|, "..."b|
|00002ea0| 75 74 20 79 6f 75 20 6d | 61 79 20 70 72 65 66 65 |ut you m|ay prefe|
|00002eb0| 72 20 74 6f 20 6f 70 65 | 6e 20 69 74 20 66 72 6f |r to ope|n it fro|
|00002ec0| 6d 20 54 48 49 4e 4b 20 | 43 2c 20 6f 72 20 61 20 |m THINK |C, or a |
|00002ed0| 77 6f 72 64 20 70 72 6f | 63 65 73 73 6f 72 2c 20 |word pro|cessor, |
|00002ee0| 62 65 63 61 75 73 65 20 | 74 68 65 20 63 6f 6c 75 |because |the colu|
|00002ef0| 6d 6e 73 20 22 0d 09 09 | 22 69 6e 20 74 68 65 20 |mns "...|"in the |
|00002f00| 74 61 62 6c 65 73 20 77 | 69 6c 6c 20 6f 6e 6c 79 |tables w|ill only|
|00002f10| 20 61 6c 69 67 6e 20 70 | 72 6f 70 65 72 6c 79 20 | align p|roperly |
|00002f20| 69 66 20 64 69 73 70 6c | 61 79 65 64 20 69 6e 20 |if displ|ayed in |
|00002f30| 61 20 6d 6f 6e 6f 73 70 | 61 63 65 64 20 66 6f 6e |a monosp|aced fon|
|00002f40| 74 2e 5c 6e 5c 6e 22 2c | 38 30 29 29 3b 0d 09 7d |t.\n\n",|80));..}|
|00002f50| 0d 09 66 66 70 72 69 6e | 74 66 28 6f 2c 22 54 69 |..ffprin|tf(o,"Ti|
|00002f60| 6d 65 56 69 64 65 6f 20 | 76 65 72 73 69 6f 6e 20 |meVideo |version |
|00002f70| 22 20 56 45 52 53 49 4f | 4e 20 22 5c 6e 22 29 3b |" VERSIO|N "\n");|
|00002f80| 0d 09 47 65 74 44 61 74 | 65 54 69 6d 65 28 26 74 |..GetDat|eTime(&t|
|00002f90| 69 6d 65 29 3b 0d 09 49 | 55 44 61 74 65 53 74 72 |ime);..I|UDateStr|
|00002fa0| 69 6e 67 28 74 69 6d 65 | 2c 6c 6f 6e 67 44 61 74 |ing(time|,longDat|
|00002fb0| 65 2c 74 6f 64 61 79 53 | 74 72 29 3b 0d 09 66 66 |e,todayS|tr);..ff|
|00002fc0| 70 72 69 6e 74 66 28 6f | 2c 22 25 23 73 2e 5c 6e |printf(o|,"%#s.\n|
|00002fd0| 22 2c 74 6f 64 61 79 53 | 74 72 29 3b 0d 0d 09 2f |",todayS|tr);.../|
|00002fe0| 2f 20 54 69 6d 65 72 2e | 63 20 72 65 71 75 69 72 |/ Timer.|c requir|
|00002ff0| 65 73 20 74 68 65 20 52 | 65 76 69 73 65 64 20 54 |es the R|evised T|
|00003000| 69 6d 65 20 4d 61 6e 61 | 67 65 72 2c 20 77 68 69 |ime Mana|ger, whi|
|00003010| 63 68 20 61 70 70 65 61 | 72 65 64 20 69 6e 20 53 |ch appea|red in S|
|00003020| 79 73 74 65 6d 20 36 2e | 30 2e 33 2e 0d 09 2f 2f |ystem 6.|0.3...//|
|00003030| 20 53 65 74 44 65 70 74 | 68 28 29 20 69 73 20 70 | SetDept|h() is p|
|00003040| 61 72 74 20 6f 66 20 74 | 68 65 20 22 6e 65 77 22 |art of t|he "new"|
|00003050| 20 50 61 6c 65 74 74 65 | 20 4d 61 6e 61 67 65 72 | Palette| Manager|
|00003060| 2c 20 77 68 69 63 68 20 | 61 70 70 65 61 72 65 64 |, which |appeared|
|00003070| 20 69 6e 20 53 79 73 74 | 65 6d 20 36 2e 30 2e 35 | in Syst|em 6.0.5|
|00003080| 2e 0d 09 47 65 73 74 61 | 6c 74 28 67 65 73 74 61 |...Gesta|lt(gesta|
|00003090| 6c 74 53 79 73 74 65 6d | 56 65 72 73 69 6f 6e 2c |ltSystem|Version,|
|000030a0| 26 73 79 73 74 65 6d 29 | 3b 0d 09 69 66 28 73 79 |&system)|;..if(sy|
|000030b0| 73 74 65 6d 3c 30 78 36 | 30 35 29 20 7b 0d 09 09 |stem<0x6|05) {...|
|000030c0| 50 72 69 6e 74 66 45 78 | 69 74 28 22 53 6f 72 72 |PrintfEx|it("Sorr|
|000030d0| 79 2e 20 59 6f 75 72 20 | 53 79 73 74 65 6d 20 69 |y. Your |System i|
|000030e0| 73 20 74 6f 6f 20 6f 6c | 64 3b 20 49 20 6e 65 65 |s too ol|d; I nee|
|000030f0| 64 20 61 74 20 6c 65 61 | 73 74 20 53 79 73 74 65 |d at lea|st Syste|
|00003100| 6d 20 36 2e 30 2e 35 2e | 5c 6e 22 29 3b 0d 09 7d |m 6.0.5.|\n");..}|
|00003110| 0d 0d 09 66 66 70 72 69 | 6e 74 66 28 6f 2c 22 25 |...ffpri|ntf(o,"%|
|00003120| 73 5c 6e 22 2c 42 72 65 | 61 6b 4c 69 6e 65 73 28 |s\n",Bre|akLines(|
|00003130| 49 64 65 6e 74 69 66 79 | 4d 61 63 68 69 6e 65 28 |Identify|Machine(|
|00003140| 29 2c 38 30 29 29 3b 0d | 09 66 66 70 72 69 6e 74 |),80));.|.ffprint|
|00003150| 66 28 6f 2c 22 54 69 63 | 6b 20 72 61 74 65 20 69 |f(o,"Tic|k rate i|
|00003160| 73 20 25 2e 31 66 20 48 | 7a 2e 22 2c 54 69 63 6b |s %.1f H|z.",Tick|
|00003170| 52 61 74 65 28 29 29 3b | 0d 09 66 66 70 72 69 6e |Rate());|..ffprin|
|00003180| 74 66 28 6f 2c 22 20 53 | 79 73 74 65 6d 2d 62 61 |tf(o," S|ystem-ba|
|00003190| 73 65 64 20 56 42 4c 20 | 72 61 74 65 20 69 73 20 |sed VBL |rate is |
|000031a0| 25 2e 31 66 20 48 7a 2e | 5c 6e 22 2c 47 44 46 72 |%.1f Hz.|\n",GDFr|
|000031b0| 61 6d 65 52 61 74 65 28 | 4e 55 4c 4c 29 29 3b 0d |ameRate(|NULL));.|
|000031c0| 09 69 66 28 51 44 38 45 | 78 69 73 74 73 28 29 29 |.if(QD8E|xists())|
|000031d0| 5f 61 74 65 78 69 74 28 | 52 65 73 74 6f 72 65 43 |_atexit(|RestoreC|
|000031e0| 6c 75 74 73 29 3b 2f 2f | 20 49 6e 20 63 61 73 65 |luts);//| In case|
|000031f0| 20 75 73 65 72 20 71 75 | 69 74 73 20 70 72 65 6d | user qu|its prem|
|00003200| 61 74 75 72 65 6c 79 2e | 0d 09 66 6f 72 28 69 3d |aturely.|..for(i=|
|00003210| 30 3b 3b 69 2b 2b 29 7b | 0d 09 09 69 66 28 51 44 |0;;i++){|...if(QD|
|00003220| 38 45 78 69 73 74 73 28 | 29 29 7b 0d 09 09 09 64 |8Exists(|)){....d|
|00003230| 65 76 69 63 65 3d 47 65 | 74 53 63 72 65 65 6e 44 |evice=Ge|tScreenD|
|00003240| 65 76 69 63 65 28 69 29 | 3b 0d 09 09 09 69 66 28 |evice(i)|;....if(|
|00003250| 64 65 76 69 63 65 3d 3d | 4e 55 4c 4c 29 62 72 65 |device==|NULL)bre|
|00003260| 61 6b 3b 0d 09 09 09 6f | 6c 64 50 69 78 65 6c 53 |ak;....o|ldPixelS|
|00003270| 69 7a 65 3d 28 2a 2a 28 | 2a 2a 64 65 76 69 63 65 |ize=(**(|**device|
|00003280| 29 2e 67 64 50 4d 61 70 | 29 2e 70 69 78 65 6c 53 |).gdPMap|).pixelS|
|00003290| 69 7a 65 3b 0d 09 09 7d | 65 6c 73 65 20 64 65 76 |ize;...}|else dev|
|000032a0| 69 63 65 3d 3d 4e 55 4c | 4c 3b 0d 09 09 66 66 70 |ice==NUL|L;...ffp|
|000032b0| 72 69 6e 74 66 28 6f 2c | 22 5c 6e 25 73 5c 6e 22 |rintf(o,|"\n%s\n"|
|000032c0| 2c 42 72 65 61 6b 4c 69 | 6e 65 73 28 49 64 65 6e |,BreakLi|nes(Iden|
|000032d0| 74 69 66 79 56 69 64 65 | 6f 28 64 65 76 69 63 65 |tifyVide|o(device|
|000032e0| 29 2c 38 30 29 29 3b 0d | 09 09 70 72 69 6e 74 66 |),80));.|..printf|
|000032f0| 28 22 47 65 74 74 69 6e | 67 20 63 61 72 64 20 69 |("Gettin|g card i|
|00003300| 6e 66 6f 2e 20 2e 20 2e | 20 20 20 20 20 20 20 20 |nfo. . .| |
|00003310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 5c 72 22 | | \r"|
|00003330| 29 3b 0d 09 09 65 72 72 | 6f 72 3d 47 44 49 6e 66 |);...err|or=GDInf|
|00003340| 6f 28 64 65 76 69 63 65 | 2c 26 63 61 72 64 5b 69 |o(device|,&card[i|
|00003350| 5d 29 3b 0d 09 09 63 61 | 72 64 5b 69 5d 2e 76 69 |]);...ca|rd[i].vi|
|00003360| 73 75 61 6c 3d 68 61 73 | 68 54 65 73 74 3d 76 69 |sual=has|hTest=vi|
|00003370| 73 75 61 6c 54 65 73 74 | 3b 0d 09 09 66 6f 72 28 |sualTest|;...for(|
|00003380| 6d 3d 30 3b 6d 3c 36 3b | 6d 2b 2b 29 7b 0d 09 09 |m=0;m<6;|m++){...|
|00003390| 09 63 61 72 64 5b 69 5d | 2e 64 65 70 74 68 5b 6d |.card[i]|.depth[m|
|000033a0| 5d 2e 70 69 78 65 6c 53 | 69 7a 65 3d 30 3b 0d 09 |].pixelS|ize=0;..|
|000033b0| 09 09 69 66 28 51 44 38 | 45 78 69 73 74 73 28 29 |..if(QD8|Exists()|
|000033c0| 29 7b 0d 09 09 09 09 69 | 66 28 21 48 61 73 44 65 |){.....i|f(!HasDe|
|000033d0| 70 74 68 28 64 65 76 69 | 63 65 2c 31 3c 3c 6d 2c |pth(devi|ce,1<<m,|
|000033e0| 30 2c 30 29 29 63 6f 6e | 74 69 6e 75 65 3b 0d 09 |0,0))con|tinue;..|
|000033f0| 09 09 09 65 72 72 6f 72 | 3d 53 65 74 44 65 70 74 |...error|=SetDept|
|00003400| 68 28 64 65 76 69 63 65 | 2c 31 3c 3c 6d 2c 30 2c |h(device|,1<<m,0,|
|00003410| 30 29 3b 0d 09 09 09 09 | 63 61 72 64 5b 69 5d 2e |0);.....|card[i].|
|00003420| 6d 6f 64 65 3d 28 2a 2a | 64 65 76 69 63 65 29 2e |mode=(**|device).|
|00003430| 67 64 4d 6f 64 65 3b 0d | 09 09 09 09 69 66 28 65 |gdMode;.|....if(e|
|00003440| 72 72 6f 72 29 63 6f 6e | 74 69 6e 75 65 3b 0d 09 |rror)con|tinue;..|
|00003450| 09 09 7d 65 6c 73 65 20 | 69 66 28 6d 3e 30 29 63 |..}else |if(m>0)c|
|00003460| 6f 6e 74 69 6e 75 65 3b | 0d 09 09 09 63 61 72 64 |ontinue;|....card|
|00003470| 5b 69 5d 2e 6d 3d 6d 3b | 0d 09 09 09 63 61 72 64 |[i].m=m;|....card|
|00003480| 5b 69 5d 2e 64 65 70 74 | 68 5b 6d 5d 2e 70 69 78 |[i].dept|h[m].pix|
|00003490| 65 6c 53 69 7a 65 3d 31 | 3c 3c 6d 3b 0d 09 09 09 |elSize=1|<<m;....|
|000034a0| 65 72 72 6f 72 3d 47 44 | 54 69 6d 65 28 64 65 76 |error=GD|Time(dev|
|000034b0| 69 63 65 2c 26 63 61 72 | 64 5b 69 5d 29 3b 0d 09 |ice,&car|d[i]);..|
|000034c0| 09 09 70 72 69 6e 74 66 | 28 22 25 64 2d 62 69 74 |..printf|("%d-bit|
|000034d0| 20 70 69 78 65 6c 73 3a | 20 74 65 73 74 69 6e 67 | pixels:| testing|
|000034e0| 20 63 6c 75 74 3a 20 47 | 44 53 65 74 45 6e 74 72 | clut: G|DSetEntr|
|000034f0| 69 65 73 20 2e 20 2e 20 | 2e 20 20 20 20 20 20 20 |ies . . |. |
|00003500| 20 20 20 20 20 20 20 20 | 20 20 20 5c 72 22 0d 09 | | \r"..|
|00003510| 09 09 09 2c 63 61 72 64 | 5b 69 5d 2e 64 65 70 74 |...,card|[i].dept|
|00003520| 68 5b 6d 5d 2e 70 69 78 | 65 6c 53 69 7a 65 29 3b |h[m].pix|elSize);|
|00003530| 0d 09 09 09 63 61 72 64 | 5b 69 5d 2e 64 65 70 74 |....card|[i].dept|
|00003540| 68 5b 6d 5d 2e 63 6c 75 | 74 2e 68 61 73 68 54 65 |h[m].clu|t.hashTe|
|00003550| 73 74 3d 68 61 73 68 54 | 65 73 74 3b 0d 09 09 09 |st=hashT|est;....|
|00003560| 63 61 72 64 5b 69 5d 2e | 64 65 70 74 68 5b 6d 5d |card[i].|depth[m]|
|00003570| 2e 63 6c 75 74 51 75 69 | 63 6b 6c 79 2e 68 61 73 |.clutQui|ckly.has|
|00003580| 68 54 65 73 74 3d 68 61 | 73 68 54 65 73 74 3b 0d |hTest=ha|shTest;.|
|00003590| 09 09 09 68 61 73 68 54 | 65 73 74 3d 30 3b 09 2f |...hashT|est=0;./|
|000035a0| 2f 20 4f 6e 6c 79 20 64 | 6f 20 74 68 65 20 68 61 |/ Only d|o the ha|
|000035b0| 73 68 20 74 65 73 74 20 | 61 74 20 6f 6e 65 20 64 |sh test |at one d|
|000035c0| 65 70 74 68 0d 09 09 09 | 63 61 72 64 5b 69 5d 2e |epth....|card[i].|
|000035d0| 64 65 70 74 68 5b 6d 5d | 2e 63 6c 75 74 2e 74 65 |depth[m]|.clut.te|
|000035e0| 73 74 73 3d 30 3b 0d 09 | 09 09 63 61 72 64 5b 69 |sts=0;..|..card[i|
|000035f0| 5d 2e 64 65 70 74 68 5b | 6d 5d 2e 63 6c 75 74 51 |].depth[|m].clutQ|
|00003600| 75 69 63 6b 6c 79 2e 74 | 65 73 74 73 3d 30 3b 0d |uickly.t|ests=0;.|
|00003610| 09 09 09 65 72 72 6f 72 | 3d 54 65 73 74 43 6c 75 |...error|=TestClu|
|00003620| 74 28 6f 2c 64 65 76 69 | 63 65 2c 30 2c 26 63 61 |t(o,devi|ce,0,&ca|
|00003630| 72 64 5b 69 5d 29 3b 0d | 09 09 09 65 72 72 6f 72 |rd[i]);.|...error|
|00003640| 3d 54 65 73 74 43 6c 75 | 74 28 6f 2c 64 65 76 69 |=TestClu|t(o,devi|
|00003650| 63 65 2c 74 65 73 74 43 | 6c 75 74 53 65 72 69 61 |ce,testC|lutSeria|
|00003660| 6c 6c 79 46 6c 61 67 2c | 26 63 61 72 64 5b 69 5d |llyFlag,|&card[i]|
|00003670| 29 3b 0d 09 09 09 65 72 | 72 6f 72 3d 54 65 73 74 |);....er|ror=Test|
|00003680| 43 6c 75 74 48 61 73 68 | 28 64 65 76 69 63 65 2c |ClutHash|(device,|
|00003690| 47 44 53 65 74 45 6e 74 | 72 69 65 73 42 79 54 79 |GDSetEnt|riesByTy|
|000036a0| 70 65 2c 26 63 61 72 64 | 5b 69 5d 2e 64 65 70 74 |pe,&card|[i].dept|
|000036b0| 68 5b 6d 5d 2e 63 6c 75 | 74 29 3b 0d 09 09 09 70 |h[m].clu|t);....p|
|000036c0| 72 69 6e 74 66 28 22 25 | 64 2d 62 69 74 20 70 69 |rintf("%|d-bit pi|
|000036d0| 78 65 6c 73 3a 20 74 65 | 73 74 69 6e 67 20 63 6c |xels: te|sting cl|
|000036e0| 75 74 3a 20 53 65 74 45 | 6e 74 72 69 65 73 51 75 |ut: SetE|ntriesQu|
|000036f0| 69 63 6b 6c 79 20 2e 20 | 2e 20 2e 20 20 20 20 20 |ickly . |. . |
|00003700| 20 20 20 20 20 20 20 20 | 5c 72 22 2c 63 61 72 64 | |\r",card|
|00003710| 5b 69 5d 2e 64 65 70 74 | 68 5b 6d 5d 2e 70 69 78 |[i].dept|h[m].pix|
|00003720| 65 6c 53 69 7a 65 29 3b | 0d 09 09 09 65 72 72 6f |elSize);|....erro|
|00003730| 72 3d 54 65 73 74 43 6c | 75 74 28 6f 2c 64 65 76 |r=TestCl|ut(o,dev|
|00003740| 69 63 65 2c 74 65 73 74 | 43 6c 75 74 51 75 69 63 |ice,test|ClutQuic|
|00003750| 6b 6c 79 46 6c 61 67 2c | 26 63 61 72 64 5b 69 5d |klyFlag,|&card[i]|
|00003760| 29 3b 0d 09 09 09 65 72 | 72 6f 72 3d 54 65 73 74 |);....er|ror=Test|
|00003770| 43 6c 75 74 28 6f 2c 64 | 65 76 69 63 65 2c 74 65 |Clut(o,d|evice,te|
|00003780| 73 74 43 6c 75 74 51 75 | 69 63 6b 6c 79 46 6c 61 |stClutQu|icklyFla|
|00003790| 67 7c 74 65 73 74 43 6c | 75 74 53 65 72 69 61 6c |g|testCl|utSerial|
|000037a0| 6c 79 46 6c 61 67 2c 26 | 63 61 72 64 5b 69 5d 29 |lyFlag,&|card[i])|
|000037b0| 3b 0d 09 09 09 65 72 72 | 6f 72 3d 54 65 73 74 43 |;....err|or=TestC|
|000037c0| 6c 75 74 48 61 73 68 28 | 64 65 76 69 63 65 2c 53 |lutHash(|device,S|
|000037d0| 65 74 45 6e 74 72 69 65 | 73 51 75 69 63 6b 6c 79 |etEntrie|sQuickly|
|000037e0| 2c 26 63 61 72 64 5b 69 | 5d 2e 64 65 70 74 68 5b |,&card[i|].depth[|
|000037f0| 6d 5d 2e 63 6c 75 74 51 | 75 69 63 6b 6c 79 29 3b |m].clutQ|uickly);|
|00003800| 0d 09 09 09 70 72 69 6e | 74 66 28 22 20 20 20 20 |....prin|tf(" |
|00003810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 5c 72 22 | | \r"|
|00003850| 29 3b 0d 09 09 7d 0d 09 | 09 69 66 28 51 44 38 45 |);...}..|.if(QD8E|
|00003860| 78 69 73 74 73 28 29 29 | 65 72 72 6f 72 3d 53 65 |xists())|error=Se|
|00003870| 74 44 65 70 74 68 28 64 | 65 76 69 63 65 2c 6f 6c |tDepth(d|evice,ol|
|00003880| 64 50 69 78 65 6c 53 69 | 7a 65 2c 30 2c 30 29 3b |dPixelSi|ze,0,0);|
|00003890| 0d 09 09 66 66 70 72 69 | 6e 74 66 28 6f 2c 22 25 |...ffpri|ntf(o,"%|
|000038a0| 64 78 25 64 20 70 69 78 | 65 6c 73 2e 20 22 2c 63 |dx%d pix|els. ",c|
|000038b0| 61 72 64 5b 69 5d 2e 77 | 69 64 74 68 2c 63 61 72 |ard[i].w|idth,car|
|000038c0| 64 5b 69 5d 2e 68 65 69 | 67 68 74 29 3b 0d 09 09 |d[i].hei|ght);...|
|000038d0| 69 66 28 63 61 72 64 2d | 3e 69 73 47 72 61 79 29 |if(card-|>isGray)|
|000038e0| 66 66 70 72 69 6e 74 66 | 28 6f 2c 22 47 72 61 79 |ffprintf|(o,"Gray|
|000038f0| 20 6d 6f 64 65 2e 5c 6e | 22 29 3b 0d 09 09 65 6c | mode.\n|");...el|
|00003900| 73 65 20 66 66 70 72 69 | 6e 74 66 28 6f 2c 22 43 |se ffpri|ntf(o,"C|
|00003910| 6f 6c 6f 72 20 6d 6f 64 | 65 2e 5c 6e 22 29 3b 0d |olor mod|e.\n");.|
|00003920| 09 09 50 72 69 6e 74 43 | 61 72 64 28 6f 2c 64 65 |..PrintC|ard(o,de|
|00003930| 76 69 63 65 2c 26 63 61 | 72 64 5b 69 5d 29 3b 0d |vice,&ca|rd[i]);.|
|00003940| 09 09 69 66 28 21 51 44 | 38 45 78 69 73 74 73 28 |..if(!QD|8Exists(|
|00003950| 29 29 62 72 65 61 6b 3b | 0d 09 7d 0d 09 63 61 72 |))break;|..}..car|
|00003960| 64 73 3d 69 3b 0d 09 69 | 66 28 47 44 56 65 72 73 |ds=i;..i|f(GDVers|
|00003970| 69 6f 6e 28 64 65 76 69 | 63 65 29 3d 3d 31 30 30 |ion(devi|ce)==100|
|00003980| 0d 09 09 26 26 20 45 71 | 75 61 6c 53 74 72 69 6e |...&& Eq|ualStrin|
|00003990| 67 28 22 5c 70 2e 44 69 | 73 70 6c 61 79 5f 56 69 |g("\p.Di|splay_Vi|
|000039a0| 64 65 6f 5f 41 70 70 6c | 65 5f 52 42 56 31 22 2c |deo_Appl|e_RBV1",|
|000039b0| 47 44 4e 61 6d 65 28 64 | 65 76 69 63 65 29 2c 31 |GDName(d|evice),1|
|000039c0| 2c 31 29 29 7b 0d 09 09 | 09 66 66 70 72 69 6e 74 |,1)){...|.ffprint|
|000039d0| 66 28 6f 2c 0d 09 09 09 | 22 4e 4f 54 45 3a 20 74 |f(o,....|"NOTE: t|
|000039e0| 68 65 20 62 75 69 6c 74 | 2d 69 6e 20 64 72 69 76 |he built|-in driv|
|000039f0| 65 72 20 69 6e 20 74 68 | 65 20 4d 61 63 20 49 49 |er in th|e Mac II|
|00003a00| 63 69 20 28 2e 44 69 73 | 70 6c 61 79 5f 56 69 64 |ci (.Dis|play_Vid|
|00003a10| 65 6f 5f 41 70 70 6c 65 | 5f 52 42 56 31 20 76 65 |eo_Apple|_RBV1 ve|
|00003a20| 72 73 69 6f 6e 20 30 29 | 5c 6e 22 0d 09 09 09 22 |rsion 0)|\n"...."|
|00003a30| 68 61 73 20 61 20 62 75 | 67 20 74 68 61 74 20 63 |has a bu|g that c|
|00003a40| 61 75 73 65 73 20 69 74 | 20 74 6f 20 63 72 61 73 |auses it| to cras|
|00003a50| 68 20 69 66 20 79 6f 75 | 20 61 74 74 65 6d 70 74 |h if you| attempt|
|00003a60| 20 74 6f 20 72 65 61 64 | 20 74 68 65 20 63 6c 75 | to read| the clu|
|00003a70| 74 2e 20 41 20 74 65 6d | 70 6f 72 61 72 79 5c 6e |t. A tem|porary\n|
|00003a80| 22 0d 09 09 09 22 70 61 | 74 63 68 20 68 61 73 20 |"...."pa|tch has |
|00003a90| 62 65 65 6e 20 61 70 70 | 6c 69 65 64 20 74 68 61 |been app|lied tha|
|00003aa0| 74 20 68 61 73 20 66 69 | 78 65 64 20 74 68 65 20 |t has fi|xed the |
|00003ab0| 64 72 69 76 65 72 20 75 | 6e 74 69 6c 20 74 68 65 |driver u|ntil the|
|00003ac0| 20 6e 65 78 74 20 72 65 | 62 6f 6f 74 2c 20 61 73 | next re|boot, as|
|00003ad0| 5c 6e 22 0d 09 09 09 22 | 65 78 70 6c 61 69 6e 65 |\n"...."|explaine|
|00003ae0| 64 20 69 6e 20 74 68 65 | 20 56 69 64 65 6f 54 6f |d in the| VideoTo|
|00003af0| 6f 6c 62 6f 78 20 66 69 | 6c 65 20 d2 56 69 64 65 |olbox fi|le .Vide|
|00003b00| 6f 20 73 79 6e 63 68 d3 | 2e 5c 6e 22 29 3b 0d 09 |o synch.|.\n");..|
|00003b10| 7d 0d 09 66 70 72 69 6e | 74 66 28 6f 5b 31 5d 2c |}..fprin|tf(o[1],|
|00003b20| 22 5c 6e 5c 6e 22 29 3b | 0d 09 69 66 28 64 61 74 |"\n\n");|..if(dat|
|00003b30| 61 46 69 6c 65 21 3d 4e | 55 4c 4c 29 7b 0d 09 09 |aFile!=N|ULL){...|
|00003b40| 66 63 6c 6f 73 65 28 64 | 61 74 61 46 69 6c 65 29 |fclose(d|ataFile)|
|00003b50| 3b 0d 09 09 73 70 72 69 | 6e 74 66 28 73 74 72 69 |;...spri|ntf(stri|
|00003b60| 6e 67 2c 22 5c 6e 54 68 | 65 20 74 65 78 74 20 66 |ng,"\nTh|e text f|
|00003b70| 69 6c 65 20 d2 25 73 d3 | 20 65 78 70 6c 61 69 6e |ile .%s.| explain|
|00003b80| 73 20 61 6c 6c 20 74 68 | 65 20 72 65 73 75 6c 74 |s all th|e result|
|00003b90| 73 2e 5c 6e 22 2c 64 61 | 74 61 66 69 6c 65 6e 61 |s.\n",da|tafilena|
|00003ba0| 6d 65 29 3b 0d 09 09 70 | 72 69 6e 74 66 28 42 72 |me);...p|rintf(Br|
|00003bb0| 65 61 6b 4c 69 6e 65 73 | 28 73 74 72 69 6e 67 2c |eakLines|(string,|
|00003bc0| 38 30 29 29 3b 0d 09 7d | 0d 7d 0d 0d 76 6f 69 64 |80));..}|.}..void|
|00003bd0| 20 50 72 69 6e 74 43 61 | 72 64 28 46 49 4c 45 20 | PrintCa|rd(FILE |
|00003be0| 2a 6f 5b 32 5d 2c 47 44 | 48 61 6e 64 6c 65 20 64 |*o[2],GD|Handle d|
|00003bf0| 65 76 69 63 65 2c 56 69 | 64 65 6f 43 61 72 64 20 |evice,Vi|deoCard |
|00003c00| 2a 63 61 72 64 29 0d 7b | 0d 09 73 68 6f 72 74 20 |*card).{|..short |
|00003c10| 69 2c 6d 3d 63 61 72 64 | 2d 3e 6d 2c 68 61 73 68 |i,m=card|->m,hash|
|00003c20| 54 65 73 74 2c 76 69 73 | 75 61 6c 54 65 73 74 3b |Test,vis|ualTest;|
|00003c30| 0d 09 63 68 61 72 20 73 | 74 72 69 6e 67 5b 31 30 |..char s|tring[10|
|00003c40| 30 5d 3b 0d 09 73 74 61 | 74 69 63 20 63 68 61 72 |0];..sta|tic char|
|00003c50| 20 73 31 5b 5d 3d 22 25 | 2d 33 33 73 22 2c 73 32 | s1[]="%|-33s",s2|
|00003c60| 5b 5d 3d 22 25 36 73 22 | 2c 73 33 5b 5d 3d 22 20 |[]="%6s"|,s3[]=" |
|00003c70| 20 25 2d 39 73 5c 6e 22 | 3b 0d 09 56 69 64 65 6f | %-9s\n"|;..Video|
|00003c80| 43 61 72 64 43 6c 75 74 | 54 65 73 74 20 2a 63 6c |CardClut|Test *cl|
|00003c90| 75 74 3b 0d 09 0d 09 66 | 66 70 72 69 6e 74 66 28 |ut;....f|fprintf(|
|00003ca0| 6f 2c 73 31 2c 22 70 69 | 78 65 6c 20 73 69 7a 65 |o,s1,"pi|xel size|
|00003cb0| 22 29 3b 0d 09 66 6f 72 | 28 6d 3d 30 3b 6d 3c 36 |");..for|(m=0;m<6|
|00003cc0| 3b 6d 2b 2b 29 69 66 28 | 63 61 72 64 2d 3e 64 65 |;m++)if(|card->de|
|00003cd0| 70 74 68 5b 6d 5d 2e 70 | 69 78 65 6c 53 69 7a 65 |pth[m].p|ixelSize|
|00003ce0| 29 7b 0d 09 09 73 70 72 | 69 6e 74 66 28 73 74 72 |){...spr|intf(str|
|00003cf0| 69 6e 67 2c 22 25 64 20 | 20 20 22 2c 63 61 72 64 |ing,"%d | ",card|
|00003d00| 2d 3e 64 65 70 74 68 5b | 6d 5d 2e 70 69 78 65 6c |->depth[|m].pixel|
|00003d10| 53 69 7a 65 29 3b 0d 09 | 09 66 66 70 72 69 6e 74 |Size);..|.ffprint|
|00003d20| 66 28 6f 2c 73 32 2c 73 | 74 72 69 6e 67 29 3b 0d |f(o,s2,s|tring);.|
|00003d30| 09 7d 0d 09 66 66 70 72 | 69 6e 74 66 28 6f 2c 73 |.}..ffpr|intf(o,s|
|00003d40| 33 2c 22 62 69 74 73 22 | 29 3b 0d 0d 09 66 66 70 |3,"bits"|);...ffp|
|00003d50| 72 69 6e 74 66 28 6f 2c | 73 31 2c 22 70 61 67 65 |rintf(o,|s1,"page|
|00003d60| 73 22 29 3b 0d 09 66 6f | 72 28 6d 3d 30 3b 6d 3c |s");..fo|r(m=0;m<|
|00003d70| 36 3b 6d 2b 2b 29 69 66 | 28 63 61 72 64 2d 3e 64 |6;m++)if|(card->d|
|00003d80| 65 70 74 68 5b 6d 5d 2e | 70 69 78 65 6c 53 69 7a |epth[m].|pixelSiz|
|00003d90| 65 29 7b 0d 09 09 73 70 | 72 69 6e 74 66 28 73 74 |e){...sp|rintf(st|
|00003da0| 72 69 6e 67 2c 22 25 64 | 20 20 20 22 2c 63 61 72 |ring,"%d| ",car|
|00003db0| 64 2d 3e 64 65 70 74 68 | 5b 6d 5d 2e 70 61 67 65 |d->depth|[m].page|
|00003dc0| 73 29 3b 0d 09 09 66 66 | 70 72 69 6e 74 66 28 6f |s);...ff|printf(o|
|00003dd0| 2c 73 32 2c 73 74 72 69 | 6e 67 29 3b 0d 09 7d 0d |,s2,stri|ng);..}.|
|00003de0| 09 66 66 70 72 69 6e 74 | 66 28 6f 2c 73 33 2c 22 |.ffprint|f(o,s3,"|
|00003df0| 22 29 3b 0d 0d 09 66 66 | 70 72 69 6e 74 66 28 6f |");...ff|printf(o|
|00003e00| 2c 73 31 2c 22 66 72 61 | 6d 65 20 72 61 74 65 22 |,s1,"fra|me rate"|
|00003e10| 29 3b 0d 09 66 6f 72 28 | 6d 3d 30 3b 6d 3c 36 3b |);..for(|m=0;m<6;|
|00003e20| 6d 2b 2b 29 69 66 28 63 | 61 72 64 2d 3e 64 65 70 |m++)if(c|ard->dep|
|00003e30| 74 68 5b 6d 5d 2e 70 69 | 78 65 6c 53 69 7a 65 29 |th[m].pi|xelSize)|
|00003e40| 7b 0d 09 09 73 70 72 69 | 6e 74 66 28 73 74 72 69 |{...spri|ntf(stri|
|00003e50| 6e 67 2c 22 25 2e 31 66 | 20 22 2c 63 61 72 64 2d |ng,"%.1f| ",card-|
|00003e60| 3e 64 65 70 74 68 5b 6d | 5d 2e 66 72 61 6d 65 52 |>depth[m|].frameR|
|00003e70| 61 74 65 29 3b 0d 09 09 | 66 66 70 72 69 6e 74 66 |ate);...|ffprintf|
|00003e80| 28 6f 2c 73 32 2c 73 74 | 72 69 6e 67 29 3b 0d 09 |(o,s2,st|ring);..|
|00003e90| 7d 0d 09 66 66 70 72 69 | 6e 74 66 28 6f 2c 73 33 |}..ffpri|ntf(o,s3|
|00003ea0| 2c 22 48 7a 22 29 3b 0d | 0d 09 66 66 70 72 69 6e |,"Hz");.|..ffprin|
|00003eb0| 74 66 28 6f 2c 73 31 2c | 22 69 6e 74 65 72 72 75 |tf(o,s1,|"interru|
|00003ec0| 70 74 73 20 70 65 72 20 | 66 72 61 6d 65 22 29 3b |pts per |frame");|
|00003ed0| 0d 09 66 6f 72 28 6d 3d | 30 3b 6d 3c 36 3b 6d 2b |..for(m=|0;m<6;m+|
|00003ee0| 2b 29 69 66 28 63 61 72 | 64 2d 3e 64 65 70 74 68 |+)if(car|d->depth|
|00003ef0| 5b 6d 5d 2e 70 69 78 65 | 6c 53 69 7a 65 29 7b 0d |[m].pixe|lSize){.|
|00003f00| 09 09 73 70 72 69 6e 74 | 66 28 73 74 72 69 6e 67 |..sprint|f(string|
|00003f10| 2c 22 25 2e 31 66 20 22 | 2c 63 61 72 64 2d 3e 64 |,"%.1f "|,card->d|
|00003f20| 65 70 74 68 5b 6d 5d 2e | 76 62 6c 50 65 72 46 72 |epth[m].|vblPerFr|
|00003f30| 61 6d 65 29 3b 0d 09 09 | 66 66 70 72 69 6e 74 66 |ame);...|ffprintf|
|00003f40| 28 6f 2c 73 32 2c 73 74 | 72 69 6e 67 29 3b 0d 09 |(o,s2,st|ring);..|
|00003f50| 7d 0d 09 66 66 70 72 69 | 6e 74 66 28 6f 2c 73 33 |}..ffpri|ntf(o,s3|
|00003f60| 2c 22 22 29 3b 0d 0d 09 | 66 66 70 72 69 6e 74 66 |,"");...|ffprintf|
|00003f70| 28 6f 2c 73 31 2c 22 43 | 6f 70 79 42 69 74 73 20 |(o,s1,"C|opyBits |
|00003f80| 6d 6f 76 69 65 20 73 69 | 7a 65 22 29 3b 0d 09 66 |movie si|ze");..f|
|00003f90| 6f 72 28 6d 3d 30 3b 6d | 3c 36 3b 6d 2b 2b 29 69 |or(m=0;m|<6;m++)i|
|00003fa0| 66 28 63 61 72 64 2d 3e | 64 65 70 74 68 5b 6d 5d |f(card->|depth[m]|
|00003fb0| 2e 70 69 78 65 6c 53 69 | 7a 65 29 7b 0d 09 09 73 |.pixelSi|ze){...s|
|00003fc0| 70 72 69 6e 74 66 28 73 | 74 72 69 6e 67 2c 22 25 |printf(s|tring,"%|
|00003fd0| 2e 32 66 22 2c 63 61 72 | 64 2d 3e 64 65 70 74 68 |.2f",car|d->depth|
|00003fe0| 5b 6d 5d 2e 6d 6f 76 69 | 65 52 61 74 65 2f 63 61 |[m].movi|eRate/ca|
|00003ff0| 72 64 2d 3e 64 65 70 74 | 68 5b 6d 5d 2e 66 72 61 |rd->dept|h[m].fra|
|00004000| 6d 65 52 61 74 65 29 3b | 0d 09 09 66 66 70 72 69 |meRate);|...ffpri|
|00004010| 6e 74 66 28 6f 2c 73 32 | 2c 73 74 72 69 6e 67 29 |ntf(o,s2|,string)|
|00004020| 3b 0d 09 7d 0d 09 66 66 | 70 72 69 6e 74 66 28 6f |;..}..ff|printf(o|
|00004030| 2c 73 33 2c 22 73 63 72 | 65 65 6e 22 29 3b 0d 0d |,s3,"scr|een");..|
|00004040| 09 66 66 70 72 69 6e 74 | 66 28 6f 2c 73 31 2c 22 |.ffprint|f(o,s1,"|
|00004050| 43 6f 70 79 42 69 74 73 | 51 75 69 63 6b 6c 79 20 |CopyBits|Quickly |
|00004060| 6d 6f 76 69 65 20 73 69 | 7a 65 22 29 3b 0d 09 66 |movie si|ze");..f|
|00004070| 6f 72 28 6d 3d 30 3b 6d | 3c 36 3b 6d 2b 2b 29 69 |or(m=0;m|<6;m++)i|
|00004080| 66 28 63 61 72 64 2d 3e | 64 65 70 74 68 5b 6d 5d |f(card->|depth[m]|
|00004090| 2e 70 69 78 65 6c 53 69 | 7a 65 29 7b 0d 09 09 73 |.pixelSi|ze){...s|
|000040a0| 70 72 69 6e 74 66 28 73 | 74 72 69 6e 67 2c 22 25 |printf(s|tring,"%|
|000040b0| 2e 32 66 22 2c 63 61 72 | 64 2d 3e 64 65 70 74 68 |.2f",car|d->depth|
|000040c0| 5b 6d 5d 2e 6d 6f 76 69 | 65 52 61 74 65 51 75 69 |[m].movi|eRateQui|
|000040d0| 63 6b 6c 79 2f 63 61 72 | 64 2d 3e 64 65 70 74 68 |ckly/car|d->depth|
|000040e0| 5b 6d 5d 2e 66 72 61 6d | 65 52 61 74 65 29 3b 0d |[m].fram|eRate);.|
|000040f0| 09 09 66 66 70 72 69 6e | 74 66 28 6f 2c 73 32 2c |..ffprin|tf(o,s2,|
|00004100| 73 74 72 69 6e 67 29 3b | 0d 09 7d 0d 09 66 66 70 |string);|..}..ffp|
|00004110| 72 69 6e 74 66 28 6f 2c | 73 33 2c 22 73 63 72 65 |rintf(o,|s3,"scre|
|00004120| 65 6e 22 29 3b 0d 0d 09 | 66 66 70 72 69 6e 74 66 |en");...|ffprintf|
|00004130| 28 6f 2c 73 31 2c 22 43 | 6f 70 79 42 69 74 73 20 |(o,s1,"C|opyBits |
|00004140| 64 61 74 61 20 72 61 74 | 65 22 29 3b 0d 09 66 6f |data rat|e");..fo|
|00004150| 72 28 6d 3d 30 3b 6d 3c | 36 3b 6d 2b 2b 29 69 66 |r(m=0;m<|6;m++)if|
|00004160| 28 63 61 72 64 2d 3e 64 | 65 70 74 68 5b 6d 5d 2e |(card->d|epth[m].|
|00004170| 70 69 78 65 6c 53 69 7a | 65 29 7b 0d 09 09 73 70 |pixelSiz|e){...sp|
|00004180| 72 69 6e 74 66 28 73 74 | 72 69 6e 67 2c 22 25 2e |rintf(st|ring,"%.|
|00004190| 32 66 22 2c 63 61 72 64 | 2d 3e 64 65 70 74 68 5b |2f",card|->depth[|
|000041a0| 6d 5d 2e 6d 6f 76 69 65 | 52 61 74 65 0d 09 09 09 |m].movie|Rate....|
|000041b0| 2a 63 61 72 64 2d 3e 64 | 65 70 74 68 5b 6d 5d 2e |*card->d|epth[m].|
|000041c0| 70 69 78 65 6c 53 69 7a | 65 0d 09 09 09 2a 63 61 |pixelSiz|e....*ca|
|000041d0| 72 64 2d 3e 77 69 64 74 | 68 2a 63 61 72 64 2d 3e |rd->widt|h*card->|
|000041e0| 68 65 69 67 68 74 2f 38 | 2e 2f 31 30 32 34 2e 2f |height/8|./1024./|
|000041f0| 31 30 32 34 2e 29 3b 0d | 09 09 66 66 70 72 69 6e |1024.);.|..ffprin|
|00004200| 74 66 28 6f 2c 73 32 2c | 73 74 72 69 6e 67 29 3b |tf(o,s2,|string);|
|00004210| 0d 09 7d 0d 09 66 66 70 | 72 69 6e 74 66 28 6f 2c |..}..ffp|rintf(o,|
|00004220| 73 33 2c 22 4d 42 2f 73 | 22 29 3b 0d 0d 09 66 66 |s3,"MB/s|");...ff|
|00004230| 70 72 69 6e 74 66 28 6f | 2c 73 31 2c 22 43 6f 70 |printf(o|,s1,"Cop|
|00004240| 79 42 69 74 73 51 75 69 | 63 6b 6c 79 20 64 61 74 |yBitsQui|ckly dat|
|00004250| 61 20 72 61 74 65 22 29 | 3b 0d 09 66 6f 72 28 6d |a rate")|;..for(m|
|00004260| 3d 30 3b 6d 3c 36 3b 6d | 2b 2b 29 69 66 28 63 61 |=0;m<6;m|++)if(ca|
|00004270| 72 64 2d 3e 64 65 70 74 | 68 5b 6d 5d 2e 70 69 78 |rd->dept|h[m].pix|
|00004280| 65 6c 53 69 7a 65 29 7b | 0d 09 09 73 70 72 69 6e |elSize){|...sprin|
|00004290| 74 66 28 73 74 72 69 6e | 67 2c 22 25 2e 32 66 22 |tf(strin|g,"%.2f"|
|000042a0| 2c 63 61 72 64 2d 3e 64 | 65 70 74 68 5b 6d 5d 2e |,card->d|epth[m].|
|000042b0| 6d 6f 76 69 65 52 61 74 | 65 51 75 69 63 6b 6c 79 |movieRat|eQuickly|
|000042c0| 0d 09 09 09 2a 63 61 72 | 64 2d 3e 64 65 70 74 68 |....*car|d->depth|
|000042d0| 5b 6d 5d 2e 70 69 78 65 | 6c 53 69 7a 65 0d 09 09 |[m].pixe|lSize...|
|000042e0| 09 2a 63 61 72 64 2d 3e | 77 69 64 74 68 2a 63 61 |.*card->|width*ca|
|000042f0| 72 64 2d 3e 68 65 69 67 | 68 74 2f 38 2e 2f 31 30 |rd->heig|ht/8./10|
|00004300| 32 34 2e 2f 31 30 32 34 | 2e 29 3b 0d 09 09 66 66 |24./1024|.);...ff|
|00004310| 70 72 69 6e 74 66 28 6f | 2c 73 32 2c 73 74 72 69 |printf(o|,s2,stri|
|00004320| 6e 67 29 3b 0d 09 7d 0d | 09 66 66 70 72 69 6e 74 |ng);..}.|.ffprint|
|00004330| 66 28 6f 2c 73 33 2c 22 | 4d 42 2f 73 22 29 3b 0d |f(o,s3,"|MB/s");.|
|00004340| 09 0d 09 69 66 28 63 61 | 72 64 2d 3e 67 64 54 79 |...if(ca|rd->gdTy|
|00004350| 70 65 21 3d 66 69 78 65 | 64 54 79 70 65 29 7b 0d |pe!=fixe|dType){.|
|00004360| 09 09 66 66 70 72 69 6e | 74 66 28 6f 2c 73 31 2c |..ffprin|tf(o,s1,|
|00004370| 22 47 44 53 65 74 45 6e | 74 72 69 65 73 20 64 75 |"GDSetEn|tries du|
|00004380| 72 61 74 69 6f 6e 22 29 | 3b 0d 09 09 66 6f 72 28 |ration")|;...for(|
|00004390| 6d 3d 30 3b 6d 3c 36 3b | 6d 2b 2b 29 69 66 28 63 |m=0;m<6;|m++)if(c|
|000043a0| 61 72 64 2d 3e 64 65 70 | 74 68 5b 6d 5d 2e 70 69 |ard->dep|th[m].pi|
|000043b0| 78 65 6c 53 69 7a 65 29 | 7b 0d 09 09 09 73 70 72 |xelSize)|{....spr|
|000043c0| 69 6e 74 66 28 73 74 72 | 69 6e 67 2c 22 25 2e 32 |intf(str|ing,"%.2|
|000043d0| 66 22 2c 63 61 72 64 2d | 3e 64 65 70 74 68 5b 6d |f",card-|>depth[m|
|000043e0| 5d 2e 66 72 61 6d 65 73 | 50 65 72 43 6c 75 74 55 |].frames|PerClutU|
|000043f0| 70 64 61 74 65 29 3b 0d | 09 09 09 66 66 70 72 69 |pdate);.|...ffpri|
|00004400| 6e 74 66 28 6f 2c 73 32 | 2c 73 74 72 69 6e 67 29 |ntf(o,s2|,string)|
|00004410| 3b 0d 09 09 7d 0d 09 09 | 66 66 70 72 69 6e 74 66 |;...}...|ffprintf|
|00004420| 28 6f 2c 73 33 2c 22 66 | 72 61 6d 65 73 22 29 3b |(o,s3,"f|rames");|
|00004430| 0d 0d 09 09 66 66 70 72 | 69 6e 74 66 28 6f 2c 73 |....ffpr|intf(o,s|
|00004440| 31 2c 22 47 44 53 65 74 | 45 6e 74 72 69 65 73 20 |1,"GDSet|Entries |
|00004450| 73 75 70 70 72 65 73 73 | 65 73 20 69 6e 74 73 2e |suppress|es ints.|
|00004460| 20 66 6f 72 22 29 3b 0d | 09 09 66 6f 72 28 6d 3d | for");.|..for(m=|
|00004470| 30 3b 6d 3c 36 3b 6d 2b | 2b 29 69 66 28 63 61 72 |0;m<6;m+|+)if(car|
|00004480| 64 2d 3e 64 65 70 74 68 | 5b 6d 5d 2e 70 69 78 65 |d->depth|[m].pixe|
|00004490| 6c 53 69 7a 65 29 7b 0d | 09 09 09 73 70 72 69 6e |lSize){.|...sprin|
|000044a0| 74 66 28 73 74 72 69 6e | 67 2c 22 25 2e 31 66 20 |tf(strin|g,"%.1f |
|000044b0| 22 2c 63 61 72 64 2d 3e | 64 65 70 74 68 5b 6d 5d |",card->|depth[m]|
|000044c0| 2e 6d 69 73 73 69 6e 67 | 46 72 61 6d 65 73 50 65 |.missing|FramesPe|
|000044d0| 72 43 6c 75 74 55 70 64 | 61 74 65 29 3b 0d 09 09 |rClutUpd|ate);...|
|000044e0| 09 66 66 70 72 69 6e 74 | 66 28 6f 2c 73 32 2c 73 |.ffprint|f(o,s2,s|
|000044f0| 74 72 69 6e 67 29 3b 0d | 09 09 7d 0d 09 09 66 66 |tring);.|..}...ff|
|00004500| 70 72 69 6e 74 66 28 6f | 2c 73 33 2c 22 66 72 61 |printf(o|,s3,"fra|
|00004510| 6d 65 73 22 29 3b 0d 0d | 09 09 66 66 70 72 69 6e |mes");..|..ffprin|
|00004520| 74 66 28 6f 2c 73 31 2c | 22 47 44 53 65 74 45 6e |tf(o,s1,|"GDSetEn|
|00004530| 74 72 69 65 73 48 69 67 | 68 50 72 69 6f 72 69 74 |triesHig|hPriorit|
|00004540| 79 20 64 75 72 61 74 69 | 6f 6e 22 29 3b 0d 09 09 |y durati|on");...|
|00004550| 66 6f 72 28 6d 3d 30 3b | 6d 3c 36 3b 6d 2b 2b 29 |for(m=0;|m<6;m++)|
|00004560| 69 66 28 63 61 72 64 2d | 3e 64 65 70 74 68 5b 6d |if(card-|>depth[m|
|00004570| 5d 2e 70 69 78 65 6c 53 | 69 7a 65 29 7b 0d 09 09 |].pixelS|ize){...|
|00004580| 09 73 70 72 69 6e 74 66 | 28 73 74 72 69 6e 67 2c |.sprintf|(string,|
|00004590| 22 25 2e 32 66 22 2c 63 | 61 72 64 2d 3e 64 65 70 |"%.2f",c|ard->dep|
|000045a0| 74 68 5b 6d 5d 2e 66 72 | 61 6d 65 73 50 65 72 43 |th[m].fr|amesPerC|
|000045b0| 6c 75 74 55 70 64 61 74 | 65 48 69 67 68 50 72 69 |lutUpdat|eHighPri|
|000045c0| 6f 72 69 74 79 29 3b 0d | 09 09 09 66 66 70 72 69 |ority);.|...ffpri|
|000045d0| 6e 74 66 28 6f 2c 73 32 | 2c 73 74 72 69 6e 67 29 |ntf(o,s2|,string)|
|000045e0| 3b 0d 09 09 7d 0d 09 09 | 66 66 70 72 69 6e 74 66 |;...}...|ffprintf|
|000045f0| 28 6f 2c 73 33 2c 22 66 | 72 61 6d 65 73 22 29 3b |(o,s3,"f|rames");|
|00004600| 0d 0d 09 09 23 69 66 20 | 30 0d 09 09 2f 2f 20 54 |....#if |0...// T|
|00004610| 68 69 73 20 69 73 20 6a | 75 73 74 20 66 6f 72 20 |his is j|ust for |
|00004620| 64 65 62 75 67 67 69 6e | 67 2c 20 73 69 6e 63 65 |debuggin|g, since|
|00004630| 20 69 74 20 6d 75 73 74 | 20 65 71 75 61 6c 20 74 | it must| equal t|
|00004640| 68 65 20 64 75 72 61 74 | 69 6f 6e 2e 0d 09 09 66 |he durat|ion....f|
|00004650| 66 70 72 69 6e 74 66 28 | 6f 2c 73 31 2c 22 47 44 |fprintf(|o,s1,"GD|
|00004660| 53 65 74 45 6e 74 72 69 | 65 73 48 69 67 68 50 72 |SetEntri|esHighPr|
|00004670| 69 6f 72 69 74 79 20 73 | 75 70 70 72 2e 2e 2e 22 |iority s|uppr..."|
|00004680| 29 3b 0d 09 09 66 6f 72 | 28 6d 3d 30 3b 6d 3c 36 |);...for|(m=0;m<6|
|00004690| 3b 6d 2b 2b 29 69 66 28 | 63 61 72 64 2d 3e 64 65 |;m++)if(|card->de|
|000046a0| 70 74 68 5b 6d 5d 2e 70 | 69 78 65 6c 53 69 7a 65 |pth[m].p|ixelSize|
|000046b0| 29 7b 0d 09 09 09 73 70 | 72 69 6e 74 66 28 73 74 |){....sp|rintf(st|
|000046c0| 72 69 6e 67 2c 22 25 2e | 31 66 20 22 2c 63 61 72 |ring,"%.|1f ",car|
|000046d0| 64 2d 3e 64 65 70 74 68 | 5b 6d 5d 2e 6d 69 73 73 |d->depth|[m].miss|
|000046e0| 69 6e 67 46 72 61 6d 65 | 73 50 65 72 43 6c 75 74 |ingFrame|sPerClut|
|000046f0| 55 70 64 61 74 65 48 69 | 67 68 50 72 69 6f 72 69 |UpdateHi|ghPriori|
|00004700| 74 79 29 3b 0d 09 09 09 | 66 66 70 72 69 6e 74 66 |ty);....|ffprintf|
|00004710| 28 6f 2c 73 32 2c 73 74 | 72 69 6e 67 29 3b 0d 09 |(o,s2,st|ring);..|
|00004720| 09 7d 0d 09 09 66 66 70 | 72 69 6e 74 66 28 6f 2c |.}...ffp|rintf(o,|
|00004730| 73 33 2c 22 66 72 61 6d | 65 73 22 29 3b 0d 09 09 |s3,"fram|es");...|
|00004740| 23 65 6e 64 69 66 0d 0d | 09 09 69 66 28 63 61 72 |#endif..|..if(car|
|00004750| 64 2d 3e 73 65 74 45 6e | 74 72 69 65 73 51 75 69 |d->setEn|triesQui|
|00004760| 63 6b 6c 79 29 7b 0d 09 | 09 09 66 66 70 72 69 6e |ckly){..|..ffprin|
|00004770| 74 66 28 6f 2c 73 31 2c | 22 53 65 74 45 6e 74 72 |tf(o,s1,|"SetEntr|
|00004780| 69 65 73 51 75 69 63 6b | 6c 79 20 64 75 72 61 74 |iesQuick|ly durat|
|00004790| 69 6f 6e 22 29 3b 0d 09 | 09 09 66 6f 72 28 6d 3d |ion");..|..for(m=|
|000047a0| 30 3b 6d 3c 36 3b 6d 2b | 2b 29 69 66 28 63 61 72 |0;m<6;m+|+)if(car|
|000047b0| 64 2d 3e 64 65 70 74 68 | 5b 6d 5d 2e 70 69 78 65 |d->depth|[m].pixe|
|000047c0| 6c 53 69 7a 65 29 7b 0d | 09 09 09 09 73 70 72 69 |lSize){.|....spri|
|000047d0| 6e 74 66 28 73 74 72 69 | 6e 67 2c 22 25 2e 32 66 |ntf(stri|ng,"%.2f|
|000047e0| 22 2c 63 61 72 64 2d 3e | 64 65 70 74 68 5b 6d 5d |",card->|depth[m]|
|000047f0| 2e 66 72 61 6d 65 73 50 | 65 72 43 6c 75 74 55 70 |.framesP|erClutUp|
|00004800| 64 61 74 65 51 75 69 63 | 6b 6c 79 29 3b 0d 09 09 |dateQuic|kly);...|
|00004810| 09 09 66 66 70 72 69 6e | 74 66 28 6f 2c 73 32 2c |..ffprin|tf(o,s2,|
|00004820| 73 74 72 69 6e 67 29 3b | 0d 09 09 09 7d 0d 09 09 |string);|....}...|
|00004830| 09 66 66 70 72 69 6e 74 | 66 28 6f 2c 73 33 2c 22 |.ffprint|f(o,s3,"|
|00004840| 66 72 61 6d 65 73 22 29 | 3b 0d 09 09 7d 0d 09 09 |frames")|;...}...|
|00004850| 0d 09 09 68 61 73 68 54 | 65 73 74 3d 30 3b 0d 09 |...hashT|est=0;..|
|00004860| 09 66 6f 72 28 6d 3d 30 | 3b 6d 3c 36 3b 6d 2b 2b |.for(m=0|;m<6;m++|
|00004870| 29 69 66 28 63 61 72 64 | 2d 3e 64 65 70 74 68 5b |)if(card|->depth[|
|00004880| 6d 5d 2e 70 69 78 65 6c | 53 69 7a 65 29 0d 09 09 |m].pixel|Size)...|
|00004890| 09 69 66 28 63 61 72 64 | 2d 3e 64 65 70 74 68 5b |.if(card|->depth[|
|000048a0| 6d 5d 2e 63 6c 75 74 2e | 68 61 73 68 54 65 73 74 |m].clut.|hashTest|
|000048b0| 29 68 61 73 68 54 65 73 | 74 3d 31 3b 0d 09 09 69 |)hashTes|t=1;...i|
|000048c0| 66 28 68 61 73 68 54 65 | 73 74 29 7b 0d 09 09 09 |f(hashTe|st){....|
|000048d0| 66 66 70 72 69 6e 74 66 | 28 6f 2c 73 31 2c 22 47 |ffprintf|(o,s1,"G|
|000048e0| 44 53 65 74 45 6e 74 72 | 69 65 73 20 68 61 73 68 |DSetEntr|ies hash|
|000048f0| 20 69 6e 73 70 65 63 74 | 69 6f 6e 22 29 3b 0d 09 | inspect|ion");..|
|00004900| 09 09 66 6f 72 28 6d 3d | 30 3b 6d 3c 36 3b 6d 2b |..for(m=|0;m<6;m+|
|00004910| 2b 29 69 66 28 63 61 72 | 64 2d 3e 64 65 70 74 68 |+)if(car|d->depth|
|00004920| 5b 6d 5d 2e 70 69 78 65 | 6c 53 69 7a 65 29 7b 0d |[m].pixe|lSize){.|
|00004930| 09 09 09 09 69 66 28 63 | 61 72 64 2d 3e 64 65 70 |....if(c|ard->dep|
|00004940| 74 68 5b 6d 5d 2e 63 6c | 75 74 2e 68 61 73 68 54 |th[m].cl|ut.hashT|
|00004950| 65 73 74 29 7b 0d 09 09 | 09 09 09 69 66 28 63 61 |est){...|...if(ca|
|00004960| 72 64 2d 3e 64 65 70 74 | 68 5b 6d 5d 2e 63 6c 75 |rd->dept|h[m].clu|
|00004970| 74 2e 68 61 73 68 29 73 | 70 72 69 6e 74 66 28 73 |t.hash)s|printf(s|
|00004980| 74 72 69 6e 67 2c 22 66 | 61 69 6c 22 29 3b 0d 09 |tring,"f|ail");..|
|00004990| 09 09 09 09 65 6c 73 65 | 20 73 70 72 69 6e 74 66 |....else| sprintf|
|000049a0| 28 73 74 72 69 6e 67 2c | 22 70 61 73 73 22 29 3b |(string,|"pass");|
|000049b0| 0d 09 09 09 09 7d 65 6c | 73 65 20 73 70 72 69 6e |.....}el|se sprin|
|000049c0| 74 66 28 73 74 72 69 6e | 67 2c 22 22 29 3b 0d 09 |tf(strin|g,"");..|
|000049d0| 09 09 09 66 66 70 72 69 | 6e 74 66 28 6f 2c 73 32 |...ffpri|ntf(o,s2|
|000049e0| 2c 73 74 72 69 6e 67 29 | 3b 0d 09 09 09 7d 0d 09 |,string)|;....}..|
|000049f0| 09 09 66 66 70 72 69 6e | 74 66 28 6f 2c 73 33 2c |..ffprin|tf(o,s3,|
|00004a00| 22 22 29 3b 0d 09 09 7d | 0d 0d 09 09 69 66 28 63 |"");...}|....if(c|
|00004a10| 61 72 64 2d 3e 73 65 74 | 45 6e 74 72 69 65 73 51 |ard->set|EntriesQ|
|00004a20| 75 69 63 6b 6c 79 29 7b | 0d 09 09 09 68 61 73 68 |uickly){|....hash|
|00004a30| 54 65 73 74 3d 30 3b 0d | 09 09 09 66 6f 72 28 6d |Test=0;.|...for(m|
|00004a40| 3d 30 3b 6d 3c 36 3b 6d | 2b 2b 29 69 66 28 63 61 |=0;m<6;m|++)if(ca|
|00004a50| 72 64 2d 3e 64 65 70 74 | 68 5b 6d 5d 2e 70 69 78 |rd->dept|h[m].pix|
|00004a60| 65 6c 53 69 7a 65 29 0d | 09 09 09 09 69 66 28 63 |elSize).|....if(c|
|00004a70| 61 72 64 2d 3e 64 65 70 | 74 68 5b 6d 5d 2e 63 6c |ard->dep|th[m].cl|
|00004a80| 75 74 51 75 69 63 6b 6c | 79 2e 68 61 73 68 54 65 |utQuickl|y.hashTe|
|00004a90| 73 74 29 68 61 73 68 54 | 65 73 74 3d 31 3b 0d 09 |st)hashT|est=1;..|
|00004aa0| 09 09 69 66 28 68 61 73 | 68 54 65 73 74 29 7b 0d |..if(has|hTest){.|
|00004ab0| 09 09 09 09 66 66 70 72 | 69 6e 74 66 28 6f 2c 73 |....ffpr|intf(o,s|
|00004ac0| 31 2c 22 53 65 74 45 6e | 74 72 69 65 73 51 75 69 |1,"SetEn|triesQui|
|00004ad0| 63 6b 6c 79 20 68 61 73 | 68 20 69 6e 73 70 65 63 |ckly has|h inspec|
|00004ae0| 74 69 6f 6e 22 29 3b 0d | 09 09 09 09 66 6f 72 28 |tion");.|....for(|
|00004af0| 6d 3d 30 3b 6d 3c 36 3b | 6d 2b 2b 29 69 66 28 63 |m=0;m<6;|m++)if(c|
|00004b00| 61 72 64 2d 3e 64 65 70 | 74 68 5b 6d 5d 2e 70 69 |ard->dep|th[m].pi|
|00004b10| 78 65 6c 53 69 7a 65 29 | 7b 0d 09 09 09 09 09 69 |xelSize)|{......i|
|00004b20| 66 28 63 61 72 64 2d 3e | 64 65 70 74 68 5b 6d 5d |f(card->|depth[m]|
|00004b30| 2e 63 6c 75 74 51 75 69 | 63 6b 6c 79 2e 68 61 73 |.clutQui|ckly.has|
|00004b40| 68 54 65 73 74 29 7b 0d | 09 09 09 09 09 09 69 66 |hTest){.|......if|
|00004b50| 28 63 61 72 64 2d 3e 64 | 65 70 74 68 5b 6d 5d 2e |(card->d|epth[m].|
|00004b60| 63 6c 75 74 51 75 69 63 | 6b 6c 79 2e 68 61 73 68 |clutQuic|kly.hash|
|00004b70| 29 73 70 72 69 6e 74 66 | 28 73 74 72 69 6e 67 2c |)sprintf|(string,|
|00004b80| 22 66 61 69 6c 22 29 3b | 0d 09 09 09 09 09 09 65 |"fail");|.......e|
|00004b90| 6c 73 65 20 73 70 72 69 | 6e 74 66 28 73 74 72 69 |lse spri|ntf(stri|
|00004ba0| 6e 67 2c 22 70 61 73 73 | 22 29 3b 0d 09 09 09 09 |ng,"pass|");.....|
|00004bb0| 09 7d 65 6c 73 65 20 73 | 70 72 69 6e 74 66 28 73 |.}else s|printf(s|
|00004bc0| 74 72 69 6e 67 2c 22 22 | 29 3b 0d 09 09 09 09 09 |tring,""|);......|
|00004bd0| 66 66 70 72 69 6e 74 66 | 28 6f 2c 73 32 2c 73 74 |ffprintf|(o,s2,st|
|00004be0| 72 69 6e 67 29 3b 0d 09 | 09 09 09 7d 0d 09 09 09 |ring);..|...}....|
|00004bf0| 09 66 66 70 72 69 6e 74 | 66 28 6f 2c 73 33 2c 22 |.ffprint|f(o,s3,"|
|00004c00| 22 29 3b 0d 09 09 09 7d | 0d 09 09 7d 0d 09 0d 09 |");....}|...}....|
|00004c10| 09 66 66 70 72 69 6e 74 | 66 28 6f 2c 73 31 2c 22 |.ffprint|f(o,s1,"|
|00004c20| 47 44 53 65 74 45 6e 74 | 72 69 65 73 20 77 72 69 |GDSetEnt|ries wri|
|00004c30| 74 65 2d 72 65 61 64 20 | 74 65 73 74 22 29 3b 0d |te-read |test");.|
|00004c40| 09 09 66 6f 72 28 6d 3d | 30 3b 6d 3c 36 3b 6d 2b |..for(m=|0;m<6;m+|
|00004c50| 2b 29 69 66 28 63 61 72 | 64 2d 3e 64 65 70 74 68 |+)if(car|d->depth|
|00004c60| 5b 6d 5d 2e 70 69 78 65 | 6c 53 69 7a 65 29 7b 0d |[m].pixe|lSize){.|
|00004c70| 09 09 09 63 6c 75 74 3d | 26 63 61 72 64 2d 3e 64 |...clut=|&card->d|
|00004c80| 65 70 74 68 5b 6d 5d 2e | 63 6c 75 74 3b 0d 09 09 |epth[m].|clut;...|
|00004c90| 09 69 66 28 21 63 61 72 | 64 2d 3e 69 73 47 72 61 |.if(!car|d->isGra|
|00004ca0| 79 20 26 26 20 63 6c 75 | 74 2d 3e 63 6f 6c 6f 72 |y && clu|t->color|
|00004cb0| 2e 65 72 72 6f 72 73 29 | 7b 0d 09 09 09 09 69 66 |.errors)|{.....if|
|00004cc0| 28 21 63 6c 75 74 2d 3e | 67 72 61 79 2e 65 72 72 |(!clut->|gray.err|
|00004cd0| 6f 72 73 29 73 70 72 69 | 6e 74 66 28 73 74 72 69 |ors)spri|ntf(stri|
|00004ce0| 6e 67 2c 22 21 63 6f 6c | 6f 72 22 29 3b 0d 09 09 |ng,"!col|or");...|
|00004cf0| 09 09 65 6c 73 65 20 69 | 66 28 21 63 6c 75 74 2d |..else i|f(!clut-|
|00004d00| 3e 63 6f 6c 6f 72 2e 7a | 65 72 6f 53 74 61 72 74 |>color.z|eroStart|
|00004d10| 45 72 72 6f 72 73 29 73 | 70 72 69 6e 74 66 28 73 |Errors)s|printf(s|
|00004d20| 74 72 69 6e 67 2c 22 21 | 73 65 72 69 61 6c 22 29 |tring,"!|serial")|
|00004d30| 3b 0d 09 09 09 09 65 6c | 73 65 20 73 70 72 69 6e |;.....el|se sprin|
|00004d40| 74 66 28 73 74 72 69 6e | 67 2c 22 62 61 64 22 29 |tf(strin|g,"bad")|
|00004d50| 3b 0d 09 09 09 7d 20 65 | 6c 73 65 20 69 66 28 63 |;....} e|lse if(c|
|00004d60| 61 72 64 2d 3e 69 73 47 | 72 61 79 20 26 26 20 63 |ard->isG|ray && c|
|00004d70| 6c 75 74 2d 3e 67 72 61 | 79 2e 65 72 72 6f 72 73 |lut->gra|y.errors|
|00004d80| 29 7b 0d 09 09 09 09 69 | 66 28 21 63 6c 75 74 2d |){.....i|f(!clut-|
|00004d90| 3e 63 6f 6c 6f 72 2e 65 | 72 72 6f 72 73 29 73 70 |>color.e|rrors)sp|
|00004da0| 72 69 6e 74 66 28 73 74 | 72 69 6e 67 2c 22 21 67 |rintf(st|ring,"!g|
|00004db0| 72 61 79 22 29 3b 0d 09 | 09 09 09 65 6c 73 65 20 |ray");..|...else |
|00004dc0| 69 66 28 21 63 6c 75 74 | 2d 3e 67 72 61 79 2e 7a |if(!clut|->gray.z|
|00004dd0| 65 72 6f 53 74 61 72 74 | 45 72 72 6f 72 73 29 73 |eroStart|Errors)s|
|00004de0| 70 72 69 6e 74 66 28 73 | 74 72 69 6e 67 2c 22 21 |printf(s|tring,"!|
|00004df0| 73 65 72 69 61 6c 22 29 | 3b 0d 09 09 09 09 65 6c |serial")|;.....el|
|00004e00| 73 65 20 73 70 72 69 6e | 74 66 28 73 74 72 69 6e |se sprin|tf(strin|
|00004e10| 67 2c 22 62 61 64 22 29 | 3b 0d 09 09 09 7d 65 6c |g,"bad")|;....}el|
|00004e20| 73 65 20 73 70 72 69 6e | 74 66 28 73 74 72 69 6e |se sprin|tf(strin|
|00004e30| 67 2c 22 6f 6b 20 22 29 | 3b 0d 09 09 09 66 66 70 |g,"ok ")|;....ffp|
|00004e40| 72 69 6e 74 66 28 6f 2c | 73 32 2c 73 74 72 69 6e |rintf(o,|s2,strin|
|00004e50| 67 29 3b 0d 09 09 7d 0d | 09 09 66 66 70 72 69 6e |g);...}.|..ffprin|
|00004e60| 74 66 28 6f 2c 73 33 2c | 22 22 29 3b 0d 0d 09 09 |tf(o,s3,|"");....|
|00004e70| 76 69 73 75 61 6c 54 65 | 73 74 3d 30 3b 0d 09 09 |visualTe|st=0;...|
|00004e80| 66 6f 72 28 6d 3d 30 3b | 6d 3c 36 3b 6d 2b 2b 29 |for(m=0;|m<6;m++)|
|00004e90| 69 66 28 63 61 72 64 2d | 3e 64 65 70 74 68 5b 6d |if(card-|>depth[m|
|00004ea0| 5d 2e 70 69 78 65 6c 53 | 69 7a 65 29 0d 09 09 09 |].pixelS|ize)....|
|00004eb0| 69 66 28 63 61 72 64 2d | 3e 64 65 70 74 68 5b 6d |if(card-|>depth[m|
|00004ec0| 5d 2e 63 6c 75 74 2e 76 | 69 73 75 61 6c 2e 74 65 |].clut.v|isual.te|
|00004ed0| 73 74 73 29 76 69 73 75 | 61 6c 54 65 73 74 3d 31 |sts)visu|alTest=1|
|00004ee0| 3b 0d 09 09 69 66 28 76 | 69 73 75 61 6c 54 65 73 |;...if(v|isualTes|
|00004ef0| 74 29 7b 0d 09 09 09 66 | 66 70 72 69 6e 74 66 28 |t){....f|fprintf(|
|00004f00| 6f 2c 73 31 2c 22 47 44 | 53 65 74 45 6e 74 72 69 |o,s1,"GD|SetEntri|
|00004f10| 65 73 20 76 69 73 75 61 | 6c 20 63 6f 6d 70 61 72 |es visua|l compar|
|00004f20| 69 73 6f 6e 22 29 3b 0d | 09 09 09 66 6f 72 28 6d |ison");.|...for(m|
|00004f30| 3d 30 3b 6d 3c 36 3b 6d | 2b 2b 29 69 66 28 63 61 |=0;m<6;m|++)if(ca|
|00004f40| 72 64 2d 3e 64 65 70 74 | 68 5b 6d 5d 2e 70 69 78 |rd->dept|h[m].pix|
|00004f50| 65 6c 53 69 7a 65 29 7b | 0d 09 09 09 09 63 6c 75 |elSize){|.....clu|
|00004f60| 74 3d 26 63 61 72 64 2d | 3e 64 65 70 74 68 5b 6d |t=&card-|>depth[m|
|00004f70| 5d 2e 63 6c 75 74 3b 0d | 09 09 09 09 69 66 28 63 |].clut;.|....if(c|
|00004f80| 6c 75 74 2d 3e 76 69 73 | 75 61 6c 2e 74 65 73 74 |lut->vis|ual.test|
|00004f90| 73 29 7b 0d 09 09 09 09 | 09 69 66 28 63 6c 75 74 |s){.....|.if(clut|
|00004fa0| 2d 3e 76 69 73 75 61 6c | 2e 65 72 72 6f 72 73 29 |->visual|.errors)|
|00004fb0| 7b 0d 09 09 09 09 09 09 | 69 66 28 21 63 6c 75 74 |{.......|if(!clut|
|00004fc0| 2d 3e 76 69 73 75 61 6c | 2e 7a 65 72 6f 53 74 61 |->visual|.zeroSta|
|00004fd0| 72 74 45 72 72 6f 72 73 | 29 73 70 72 69 6e 74 66 |rtErrors|)sprintf|
|00004fe0| 28 73 74 72 69 6e 67 2c | 22 21 73 65 72 69 61 6c |(string,|"!serial|
|00004ff0| 22 29 3b 0d 09 09 09 09 | 09 09 65 6c 73 65 20 73 |");.....|..else s|
|00005000| 70 72 69 6e 74 66 28 73 | 74 72 69 6e 67 2c 22 66 |printf(s|tring,"f|
|00005010| 61 69 6c 22 29 3b 0d 09 | 09 09 09 09 7d 65 6c 73 |ail");..|....}els|
|00005020| 65 20 73 70 72 69 6e 74 | 66 28 73 74 72 69 6e 67 |e sprint|f(string|
|00005030| 2c 22 70 61 73 73 22 29 | 3b 0d 09 09 09 09 7d 65 |,"pass")|;.....}e|
|00005040| 6c 73 65 20 73 70 72 69 | 6e 74 66 28 73 74 72 69 |lse spri|ntf(stri|
|00005050| 6e 67 2c 22 22 29 3b 0d | 09 09 09 09 66 66 70 72 |ng,"");.|....ffpr|
|00005060| 69 6e 74 66 28 6f 2c 73 | 32 2c 73 74 72 69 6e 67 |intf(o,s|2,string|
|00005070| 29 3b 0d 09 09 09 7d 0d | 09 09 09 66 66 70 72 69 |);....}.|...ffpri|
|00005080| 6e 74 66 28 6f 2c 73 33 | 2c 22 22 29 3b 0d 09 09 |ntf(o,s3|,"");...|
|00005090| 7d 0d 0d 09 09 69 66 28 | 63 61 72 64 2d 3e 73 65 |}....if(|card->se|
|000050a0| 74 45 6e 74 72 69 65 73 | 51 75 69 63 6b 6c 79 29 |tEntries|Quickly)|
|000050b0| 7b 0d 09 09 09 66 66 70 | 72 69 6e 74 66 28 6f 2c |{....ffp|rintf(o,|
|000050c0| 73 31 2c 22 53 65 74 45 | 6e 74 72 69 65 73 51 75 |s1,"SetE|ntriesQu|
|000050d0| 69 63 6b 6c 79 20 77 72 | 69 74 65 2d 72 65 61 64 |ickly wr|ite-read|
|000050e0| 20 74 65 73 74 22 29 3b | 0d 09 09 09 66 6f 72 28 | test");|....for(|
|000050f0| 6d 3d 30 3b 6d 3c 36 3b | 6d 2b 2b 29 69 66 28 63 |m=0;m<6;|m++)if(c|
|00005100| 61 72 64 2d 3e 64 65 70 | 74 68 5b 6d 5d 2e 70 69 |ard->dep|th[m].pi|
|00005110| 78 65 6c 53 69 7a 65 29 | 7b 0d 09 09 09 09 63 6c |xelSize)|{.....cl|
|00005120| 75 74 3d 26 63 61 72 64 | 2d 3e 64 65 70 74 68 5b |ut=&card|->depth[|
|00005130| 6d 5d 2e 63 6c 75 74 51 | 75 69 63 6b 6c 79 3b 0d |m].clutQ|uickly;.|
|00005140| 09 09 09 09 69 66 28 21 | 63 61 72 64 2d 3e 69 73 |....if(!|card->is|
|00005150| 47 72 61 79 20 26 26 20 | 63 6c 75 74 2d 3e 63 6f |Gray && |clut->co|
|00005160| 6c 6f 72 2e 65 72 72 6f | 72 73 29 7b 0d 09 09 09 |lor.erro|rs){....|
|00005170| 09 09 69 66 28 21 63 6c | 75 74 2d 3e 67 72 61 79 |..if(!cl|ut->gray|
|00005180| 2e 65 72 72 6f 72 73 29 | 73 70 72 69 6e 74 66 28 |.errors)|sprintf(|
|00005190| 73 74 72 69 6e 67 2c 22 | 21 63 6f 6c 6f 72 22 29 |string,"|!color")|
|000051a0| 3b 0d 09 09 09 09 09 65 | 6c 73 65 20 69 66 28 21 |;......e|lse if(!|
|000051b0| 63 6c 75 74 2d 3e 63 6f | 6c 6f 72 2e 7a 65 72 6f |clut->co|lor.zero|
|000051c0| 53 74 61 72 74 45 72 72 | 6f 72 73 29 73 70 72 69 |StartErr|ors)spri|
|000051d0| 6e 74 66 28 73 74 72 69 | 6e 67 2c 22 21 73 65 72 |ntf(stri|ng,"!ser|
|000051e0| 69 61 6c 22 29 3b 0d 09 | 09 09 09 09 65 6c 73 65 |ial");..|....else|
|000051f0| 20 73 70 72 69 6e 74 66 | 28 73 74 72 69 6e 67 2c | sprintf|(string,|
|00005200| 22 62 61 64 22 29 3b 0d | 09 09 09 09 7d 20 65 6c |"bad");.|....} el|
|00005210| 73 65 20 69 66 28 63 61 | 72 64 2d 3e 69 73 47 72 |se if(ca|rd->isGr|
|00005220| 61 79 20 26 26 20 63 6c | 75 74 2d 3e 67 72 61 79 |ay && cl|ut->gray|
|00005230| 2e 65 72 72 6f 72 73 29 | 7b 0d 09 09 09 09 09 69 |.errors)|{......i|
|00005240| 66 28 21 63 6c 75 74 2d | 3e 63 6f 6c 6f 72 2e 65 |f(!clut-|>color.e|
|00005250| 72 72 6f 72 73 29 73 70 | 72 69 6e 74 66 28 73 74 |rrors)sp|rintf(st|
|00005260| 72 69 6e 67 2c 22 21 67 | 72 61 79 22 29 3b 0d 09 |ring,"!g|ray");..|
|00005270| 09 09 09 09 65 6c 73 65 | 20 69 66 28 21 63 6c 75 |....else| if(!clu|
|00005280| 74 2d 3e 67 72 61 79 2e | 7a 65 72 6f 53 74 61 72 |t->gray.|zeroStar|
|00005290| 74 45 72 72 6f 72 73 29 | 73 70 72 69 6e 74 66 28 |tErrors)|sprintf(|
|000052a0| 73 74 72 69 6e 67 2c 22 | 21 73 65 72 69 61 6c 22 |string,"|!serial"|
|000052b0| 29 3b 0d 09 09 09 09 09 | 65 6c 73 65 20 73 70 72 |);......|else spr|
|000052c0| 69 6e 74 66 28 73 74 72 | 69 6e 67 2c 22 62 61 64 |intf(str|ing,"bad|
|000052d0| 22 29 3b 0d 09 09 09 09 | 7d 65 6c 73 65 20 73 70 |");.....|}else sp|
|000052e0| 72 69 6e 74 66 28 73 74 | 72 69 6e 67 2c 22 6f 6b |rintf(st|ring,"ok|
|000052f0| 20 22 29 3b 0d 09 09 09 | 09 66 66 70 72 69 6e 74 | ");....|.ffprint|
|00005300| 66 28 6f 2c 73 32 2c 73 | 74 72 69 6e 67 29 3b 0d |f(o,s2,s|tring);.|
|00005310| 09 09 09 7d 0d 09 09 09 | 66 66 70 72 69 6e 74 66 |...}....|ffprintf|
|00005320| 28 6f 2c 73 33 2c 22 22 | 29 3b 0d 09 09 7d 0d 0d |(o,s3,""|);...}..|
|00005330| 09 09 76 69 73 75 61 6c | 54 65 73 74 3d 30 3b 0d |..visual|Test=0;.|
|00005340| 09 09 66 6f 72 28 6d 3d | 30 3b 6d 3c 36 3b 6d 2b |..for(m=|0;m<6;m+|
|00005350| 2b 29 69 66 28 63 61 72 | 64 2d 3e 64 65 70 74 68 |+)if(car|d->depth|
|00005360| 5b 6d 5d 2e 70 69 78 65 | 6c 53 69 7a 65 29 0d 09 |[m].pixe|lSize)..|
|00005370| 09 09 69 66 28 63 61 72 | 64 2d 3e 64 65 70 74 68 |..if(car|d->depth|
|00005380| 5b 6d 5d 2e 63 6c 75 74 | 51 75 69 63 6b 6c 79 2e |[m].clut|Quickly.|
|00005390| 76 69 73 75 61 6c 2e 74 | 65 73 74 73 29 76 69 73 |visual.t|ests)vis|
|000053a0| 75 61 6c 54 65 73 74 3d | 31 3b 0d 09 09 69 66 28 |ualTest=|1;...if(|
|000053b0| 76 69 73 75 61 6c 54 65 | 73 74 29 7b 0d 09 09 09 |visualTe|st){....|
|000053c0| 66 66 70 72 69 6e 74 66 | 28 6f 2c 73 31 2c 22 47 |ffprintf|(o,s1,"G|
|000053d0| 44 53 65 74 45 6e 74 72 | 69 65 73 51 75 69 63 6b |DSetEntr|iesQuick|
|000053e0| 6c 79 20 76 69 73 75 61 | 6c 20 63 6f 6d 70 61 72 |ly visua|l compar|
|000053f0| 69 73 6f 6e 22 29 3b 0d | 09 09 09 66 6f 72 28 6d |ison");.|...for(m|
|00005400| 3d 30 3b 6d 3c 36 3b 6d | 2b 2b 29 69 66 28 63 61 |=0;m<6;m|++)if(ca|
|00005410| 72 64 2d 3e 64 65 70 74 | 68 5b 6d 5d 2e 70 69 78 |rd->dept|h[m].pix|
|00005420| 65 6c 53 69 7a 65 29 7b | 0d 09 09 09 09 63 6c 75 |elSize){|.....clu|
|00005430| 74 3d 26 63 61 72 64 2d | 3e 64 65 70 74 68 5b 6d |t=&card-|>depth[m|
|00005440| 5d 2e 63 6c 75 74 51 75 | 69 63 6b 6c 79 3b 0d 09 |].clutQu|ickly;..|
|00005450| 09 09 09 69 66 28 63 6c | 75 74 2d 3e 76 69 73 75 |...if(cl|ut->visu|
|00005460| 61 6c 2e 74 65 73 74 73 | 29 7b 0d 09 09 09 09 09 |al.tests|){......|
|00005470| 69 66 28 63 6c 75 74 2d | 3e 76 69 73 75 61 6c 2e |if(clut-|>visual.|
|00005480| 65 72 72 6f 72 73 29 7b | 0d 09 09 09 09 09 09 69 |errors){|.......i|
|00005490| 66 28 21 63 6c 75 74 2d | 3e 76 69 73 75 61 6c 2e |f(!clut-|>visual.|
|000054a0| 7a 65 72 6f 53 74 61 72 | 74 45 72 72 6f 72 73 29 |zeroStar|tErrors)|
|000054b0| 73 70 72 69 6e 74 66 28 | 73 74 72 69 6e 67 2c 22 |sprintf(|string,"|
|000054c0| 21 73 65 72 69 61 6c 22 | 29 3b 0d 09 09 09 09 09 |!serial"|);......|
|000054d0| 09 65 6c 73 65 20 73 70 | 72 69 6e 74 66 28 73 74 |.else sp|rintf(st|
|000054e0| 72 69 6e 67 2c 22 66 61 | 69 6c 22 29 3b 0d 09 09 |ring,"fa|il");...|
|000054f0| 09 09 09 7d 65 6c 73 65 | 20 73 70 72 69 6e 74 66 |...}else| sprintf|
|00005500| 28 73 74 72 69 6e 67 2c | 22 70 61 73 73 22 29 3b |(string,|"pass");|
|00005510| 0d 09 09 09 09 7d 65 6c | 73 65 20 73 70 72 69 6e |.....}el|se sprin|
|00005520| 74 66 28 73 74 72 69 6e | 67 2c 22 22 29 3b 0d 09 |tf(strin|g,"");..|
|00005530| 09 09 09 66 66 70 72 69 | 6e 74 66 28 6f 2c 73 32 |...ffpri|ntf(o,s2|
|00005540| 2c 73 74 72 69 6e 67 29 | 3b 0d 09 09 09 7d 0d 09 |,string)|;....}..|
|00005550| 09 09 66 66 70 72 69 6e | 74 66 28 6f 2c 73 33 2c |..ffprin|tf(o,s3,|
|00005560| 22 22 29 3b 0d 09 09 7d | 0d 09 7d 0d 09 66 6f 72 |"");...}|..}..for|
|00005570| 28 69 3d 30 3b 69 3c 32 | 3b 69 2b 2b 29 69 66 28 |(i=0;i<2|;i++)if(|
|00005580| 6f 5b 69 5d 21 3d 4e 55 | 4c 4c 29 66 66 6c 75 73 |o[i]!=NU|LL)fflus|
|00005590| 68 28 6f 5b 69 5d 29 3b | 09 2f 2f 20 53 61 76 65 |h(o[i]);|.// Save|
|000055a0| 20 74 6f 20 64 69 73 6b | 2c 20 6a 75 73 74 20 69 | to disk|, just i|
|000055b0| 6e 20 63 61 73 65 2e 0d | 7d 0d 0d 76 6f 69 64 20 |n case..|}..void |
|000055c0| 47 44 52 65 73 74 6f 72 | 65 42 6c 61 63 6b 41 6e |GDRestor|eBlackAn|
|000055d0| 64 57 68 69 74 65 28 47 | 44 48 61 6e 64 6c 65 20 |dWhite(G|DHandle |
|000055e0| 64 65 76 69 63 65 29 0d | 2f 2f 20 52 65 73 74 6f |device).|// Resto|
|000055f0| 72 65 20 74 68 65 20 66 | 69 72 73 74 20 26 20 6c |re the f|irst & l|
|00005600| 61 73 74 20 63 6c 75 74 | 20 65 6e 74 72 69 65 73 |ast clut| entries|
|00005610| 20 28 77 68 69 74 65 20 | 26 20 62 6c 61 63 6b 29 | (white |& black)|
|00005620| 20 66 6f 72 0d 2f 2f 20 | 61 20 63 6c 75 74 20 77 | for.// |a clut w|
|00005630| 68 6f 73 65 20 6d 6f 64 | 65 20 6e 65 65 64 20 6e |hose mod|e need n|
|00005640| 6f 74 20 63 6f 72 72 65 | 73 70 6f 6e 64 20 74 6f |ot corre|spond to|
|00005650| 20 77 68 61 74 20 51 75 | 69 63 6b 44 72 61 77 20 | what Qu|ickDraw |
|00005660| 74 68 69 6e 6b 73 2c 20 | 61 73 0d 2f 2f 20 72 65 |thinks, |as.// re|
|00005670| 63 6f 72 64 65 64 20 69 | 6e 20 74 68 65 20 64 65 |corded i|n the de|
|00005680| 76 69 63 65 27 73 20 47 | 44 48 61 6e 64 6c 65 2e |vice's G|DHandle.|
|00005690| 0d 7b 0d 09 73 68 6f 72 | 74 20 6d 6f 64 65 2c 63 |.{..shor|t mode,c|
|000056a0| 6f 6c 6f 72 73 2c 65 72 | 72 6f 72 3b 0d 09 43 6f |olors,er|ror;..Co|
|000056b0| 6c 6f 72 53 70 65 63 20 | 77 68 69 74 65 3d 7b 32 |lorSpec |white={2|
|000056c0| 35 35 2c 30 78 66 66 66 | 66 2c 30 78 66 66 66 66 |55,0xfff|f,0xffff|
|000056d0| 2c 30 78 66 66 66 66 7d | 2c 62 6c 61 63 6b 3d 7b |,0xffff}|,black={|
|000056e0| 30 2c 30 2c 30 2c 30 7d | 3b 0d 0d 09 63 6f 6c 6f |0,0,0,0}|;...colo|
|000056f0| 72 73 3d 47 44 43 6c 75 | 74 53 69 7a 65 28 64 65 |rs=GDClu|tSize(de|
|00005700| 76 69 63 65 29 3b 0d 09 | 47 44 47 65 74 4d 6f 64 |vice);..|GDGetMod|
|00005710| 65 28 64 65 76 69 63 65 | 2c 26 6d 6f 64 65 2c 4e |e(device|,&mode,N|
|00005720| 55 4c 4c 2c 4e 55 4c 4c | 29 3b 0d 09 69 66 28 6d |ULL,NULL|);..if(m|
|00005730| 6f 64 65 3c 73 69 78 74 | 65 65 6e 42 69 74 4d 6f |ode<sixt|eenBitMo|
|00005740| 64 65 29 7b 0d 09 09 65 | 72 72 6f 72 3d 47 44 53 |de){...e|rror=GDS|
|00005750| 65 74 45 6e 74 72 69 65 | 73 28 64 65 76 69 63 65 |etEntrie|s(device|
|00005760| 2c 30 2c 30 2c 26 77 68 | 69 74 65 29 3b 0d 09 09 |,0,0,&wh|ite);...|
|00005770| 65 72 72 6f 72 3d 47 44 | 53 65 74 45 6e 74 72 69 |error=GD|SetEntri|
|00005780| 65 73 28 64 65 76 69 63 | 65 2c 63 6f 6c 6f 72 73 |es(devic|e,colors|
|00005790| 2d 31 2c 30 2c 26 62 6c | 61 63 6b 2d 28 63 6f 6c |-1,0,&bl|ack-(col|
|000057a0| 6f 72 73 2d 31 29 29 3b | 0d 09 7d 65 6c 73 65 7b |ors-1));|..}else{|
|000057b0| 0d 09 09 65 72 72 6f 72 | 3d 47 44 44 69 72 65 63 |...error|=GDDirec|
|000057c0| 74 53 65 74 45 6e 74 72 | 69 65 73 28 64 65 76 69 |tSetEntr|ies(devi|
|000057d0| 63 65 2c 30 2c 30 2c 26 | 62 6c 61 63 6b 29 3b 0d |ce,0,0,&|black);.|
|000057e0| 09 09 65 72 72 6f 72 3d | 47 44 44 69 72 65 63 74 |..error=|GDDirect|
|000057f0| 53 65 74 45 6e 74 72 69 | 65 73 28 64 65 76 69 63 |SetEntri|es(devic|
|00005800| 65 2c 63 6f 6c 6f 72 73 | 2d 31 2c 30 2c 26 77 68 |e,colors|-1,0,&wh|
|00005810| 69 74 65 2d 28 63 6f 6c | 6f 72 73 2d 31 29 29 3b |ite-(col|ors-1));|
|00005820| 0d 09 7d 0d 7d 0d 0d 0d | 00 00 00 00 00 00 00 00 |..}.}...|........|
|00005830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005880| 00 00 01 00 00 00 01 d4 | 00 00 00 d4 00 00 00 72 |........|.......r|
|00005890| 00 00 00 00 00 0c 09 50 | 6f 73 74 45 76 65 6e 74 |.......P|ostEvent|
|000058a0| 20 20 00 00 00 64 00 03 | 00 00 09 92 00 01 00 03 | ...d..|........|
|000058b0| 0b 54 69 6d 65 56 69 64 | 65 6f 2e 63 02 00 00 00 |.TimeVid|eo.c....|
|000058c0| 54 45 58 54 4b 41 48 4c | 00 00 00 00 00 00 00 00 |TEXTKAHL|........|
|000058d0| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|000058e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058f0| 00 00 a7 e5 d5 89 00 00 | 00 00 00 00 02 46 00 03 |........|.....F..|
|00005900| 00 00 05 62 00 01 00 00 | 00 00 00 14 11 50 42 44 |...b....|.....PBD|
|00005910| 54 52 65 6d 6f 76 65 43 | 6f 6d 6d 65 6e 74 20 20 |TRemoveC|omment |
|00005920| 00 00 00 67 00 03 00 00 | 09 5a 00 01 00 03 00 00 |...g....|.Z......|
|00005930| 05 5a 00 01 00 00 00 00 | 00 10 0e 50 42 44 54 53 |.Z......|...PBDTS|
|00005940| 65 74 43 6f 6d 6d 65 6e | 74 20 00 00 00 68 00 03 |etCommen|t ...h..|
|00005950| 00 00 04 ec 00 01 00 03 | 00 00 02 d2 00 01 00 00 |........|........|
|00005960| 00 00 00 08 07 50 42 45 | 6a 65 63 74 00 00 00 69 |.....PBE|ject...i|
|00005970| 00 03 00 00 02 e6 00 01 | 00 03 00 00 01 aa 00 01 |........|........|
|00005980| 00 00 00 26 00 01 00 24 | 00 00 39 49 01 18 00 22 |...&...$|..9I..."|
|00005990| 88 38 00 00 15 63 61 72 | 64 5b 69 5d 2e 6d 6f 76 |.8...car|d[i].mov|
|000059a0| 69 65 52 61 74 65 5b 6a | 5d 20 00 00 00 48 00 09 |ieRate[j|] ...H..|
|000059b0| 4d 6f 6e 61 63 6f 00 14 | 42 0c 00 00 00 00 00 00 |Monaco..|B.......|
|000059c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059d0| 00 06 00 04 00 50 00 20 | 01 dd 02 3d 00 50 00 20 |.....P. |...=.P. |
|000059e0| 01 dd 02 3d a7 c4 2e b7 | 00 00 14 e7 00 00 15 ef |...=....|........|
|000059f0| 00 00 13 db 01 00 00 00 | 00 1e 00 50 00 20 01 dd |........|...P. ..|
|00005a00| 02 3d 00 50 00 20 01 dd | 02 3d 00 00 13 db 00 00 |.=.P. ..|.=......|
|00005a10| 00 00 00 00 00 00 00 00 | 00 00 00 14 00 00 35 90 |........|......5.|
|00005a20| 01 05 00 00 00 00 00 00 | 32 68 00 f0 00 00 00 00 |........|2h......|
|00005a30| 00 00 00 20 00 02 00 00 | 10 59 00 00 10 5d 05 6d |... ....|.Y...].m|
|00005a40| 61 69 6e 00 00 00 12 ce | 00 00 12 ce 07 54 69 6d |ain.....|.....Tim|
|00005a50| 65 43 50 55 00 00 01 00 | 00 00 01 d4 00 00 00 d4 |eCPU....|........|
|00005a60| 00 00 00 72 00 f5 07 88 | 1e da 00 00 00 1c 00 72 |...r....|.......r|
|00005a70| 00 02 44 54 56 55 00 00 | 00 1a 4d 50 53 52 00 02 |..DTVU..|..MPSR..|
|00005a80| 00 26 42 4b 50 54 00 00 | 00 4a 01 fe ff ff 00 00 |.&BKPT..|.J......|
|00005a90| 00 00 00 00 00 00 03 ed | ff ff 00 00 00 2a 00 00 |........|.....*..|
|00005aa0| 00 00 03 f0 ff ff 00 00 | 00 76 00 00 00 00 03 ef |........|.v......|
|00005ab0| ff ff 00 00 00 b0 00 00 | 00 00 3c eb ff ff 00 00 |........|..<.....|
|00005ac0| 00 98 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+